Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help with teleport torso to part?

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)


1 comment

0

add a wait() ?

1 answer

✓ Accepted answer

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

for i,v in pairs(Admins) do
wait()

1 comment

0

+2 rep :)

This discussion is preserved as it was. New answers, comments, and votes are closed.