Advertisement
NotExotic

Twlwport lIsNAD

Sep 21st, 2023 (edited)
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. local localPlayer = game.Players.LocalPlayer
  2.  
  3. local newPosition = Vector3.new(-121, 50, 0)
  4.  
  5. if localPlayer and newPosition then
  6. local character = localPlayer.Character
  7. if character and character:IsA("Model") and character:FindFirstChild("HumanoidRootPart") then
  8. character:MoveTo(newPosition)
  9. print("Local player moved to the new position!")
  10. else
  11. print("Local player's character not found.")
  12. end
  13. else
  14. print("Local player not found or invalid coordinates.")
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement