Ad
Log in to vote
0

Help with teleport torso to part?

Asked by
FiredDusk 1441
1 year ago

Right when I touch the part to get tp'ed it waits like 2 secs to tp me.. I want it right away.

Admins = {
"Player1",
}

script.Parent.Touched:connect(function(hit)
    for i,v in pairs(Admins) do
        if hit.Parent.Name == v then
            hit.Parent:WaitForChild("Torso").CFrame = script.Parent.Parent.TpedTo.CFrame * CFrame.new(0,5,0)
        end
    end
end)


0
add a wait() ? StoIid 354 — 1y

1 answer

Log in to vote
2
Answered by
StoIid 354
1 year ago

Try adding a wait() right under for i,v in pairs(Admins) do

for i,v in pairs(Admins) do
wait()
0
+2 rep :) FiredDusk 1441 — 1y
Ad

Answer this question



Ad