Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Click detecter teleport not working?

Asked by 4 years ago
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?

0
is the script parented to the click detector? Dalamix 26 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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
0
thanks,it worked :d tnt54868726 3 — 4y
Ad

Answer this question