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?
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
thanks,it worked :d
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
is the script parented to the click detector?