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?
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