콘텐츠로 건너뛰기
작동 중

opensource tween to folder

DEDeerHunter560 조회수Universal2026년 7월 22일
공유
opensource tween to folder

스크립트 코드

Lua
local Players = game:GetService("Players")
local TS = game:GetService("TweenService")
local US = game:GetService("UserInputService")
local RS = game:GetService("RunService")
local LP = Players.LocalPlayer

local folder = workspace:FindFirstChild("folder name") -- change

if not folder then
    print("no folder found")
    return
end

local parts = {}
local index = 1
local tweening = false
local enabled = false
local speed = 300

local function CollectShit()
    parts = {}
    for _, part in pairs(folder:GetDescendants()) do
        if part:IsA("BasePart") then
            table.insert(parts, part)
        end
    end
    if #parts == 0 then
        print("no parts found")
    end
end

CollectShit()

local function TweenToPart(part)
    if tweening or not part or not part.Parent then return end

    local char = LP.Character
    local root = char and char:FindFirstChild("HumanoidRootPart")
    if not root then
        print("no rootpart found")
        return
    end

    tweening = true

    local targetPos = part.Position
    local distance = (root.Position - targetPos).Magnitude
    local duration = math.max(distance / speed, 0.05)

    local noclip = {}
    for _, p in pairs(char:GetDescendants()) do
        if p:IsA("BasePart") then
            noclip[p] = p.CanCollide
            p.CanCollide = false
        end
    end

    local tween = TS:Create(root,
        TweenInfo.new(duration, Enum.EasingStyle.Linear),
        {CFrame = CFrame.new(targetPos + Vector3.new(0, 2, 0))}
    )

    tween:Play()
    tween.Completed:Wait()

    for p, clip in pairs(noclip) do
        if p and p.Parent then
            p.CanCollide = clip
        end
    end

    tweening = false
end

local function loop()
    if #parts == 0 then return end

    while enabled do
        local target = parts[index]
        if target and target.Parent then
            TweenToPart(target)
        end
        index = index + 1
        if index > #parts then
            index = 1
        end
        task.wait(0.05)
    end
end

US.InputBegan:Connect(function(input, gameProcessed)
    if gameProcessed then return end
    if input.KeyCode == Enum.KeyCode.F then
        enabled = not enabled
        if enabled then
            CollectShit()
            if #parts == 0 then
                enabled = false
                return
            end
            index = 1
            task.spawn(loop)
        end
    end
end)

folder.DescendantAdded:Connect(function()
    if enabled then
        CollectShit()
    end
end)

print("press f to start tweening")

설명

change the local folder variable to wtv folder you want to tween to toggle key is f use it as reference for your script or smt idk if its too fast change the speed

댓글 (0)

대화에 참여하려면 로그인하세요

  • 첫 댓글을 작성하세요.

자주 묻는 질문

opensource tween to folder 스크립트는 어떻게 사용하나요?
위의 스크립트 코드를 복사하고 Roblox에서 Universal에 접속한 뒤, 익스큐터에 붙여넣고 실행하세요. 스크립트가 실행되면 기능이 바로 활성화됩니다.
opensource tween to folder은(는) 아직 작동하나요?
네 — opensource tween to folder은(는) 현재 작동 중으로 표시되어 있습니다(마지막 업데이트: 2026년 9월 9일). Roblox 업데이트 후 작동하지 않으면 새 버전을 기다려 주세요.
opensource tween to folder에 호환되는 엑시큐터는?
이 스크립트는 대부분의 인기 Roblox 엑시큐터에서 작동합니다. 기기에 맞는 신뢰할 수 있는 무료 또는 유료 엑시큐터를 찾으려면 엑시큐터 페이지를 확인하세요.