I'm making a script for a tool that allows a player to Teleport to a location that they click to. However, it only breaks the game and dislodges the camera from the body. I need a fix that works with both R6 and R15
Code:
mouse.Button1Down:connect(function(key) if mouse.Target then character.HumanoidRootPart.Position = Vector3.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z) end end)

1 comment
Please post an explanation to explain. For more information see: https://github.com/WillSullivan/idownvotedbecause/issues/105