1 | script.Parent.MouseClick:Connect( function (tp) |
2 | tp.Character.Torso.CFrame = CFrame.new(script.Parent.Parent.Position) |
3 | end ) |
i wrote this script but i dont know what's wrong with this script can any body help me?
The main problem I see is that you're using the torso to teleport.
1 | tp.Character.Torso.CFrame |
To teleport correctly without killing the player, you use the HumanoidRootPart
1 | tp.Character.HumanoidRootPart.CFrame |