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

Click detecter teleport not working?

script.Parent.MouseClick:Connect(function(tp)
		tp.Character.Torso.CFrame = CFrame.new(script.Parent.Parent.Position)
end)

i wrote this script but i dont know what's wrong with this script can any body help me?

1 comment

0

is the script parented to the click detector?

1 answer

✓ Accepted answer

The main problem I see is that you're using the torso to teleport.

 tp.Character.Torso.CFrame

To teleport correctly without killing the player, you use the HumanoidRootPart

 tp.Character.HumanoidRootPart.CFrame

1 comment

0

thanks,it worked :d

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