xvc200

tptool script

Jan 7th, 2025 (edited)
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local mouse = player:GetMouse()
  3.  
  4. local tool = Instance.new("Tool")
  5. tool.RequiresHandle = false
  6. tool.Name = "TpTool"
  7.  
  8. tool.Activated:Connect(function()
  9. if not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then
  10. return
  11. end
  12.  
  13. local targetPosition = mouse.Hit.p + Vector3.new(0, 2.5, 0)
  14. player.Character.HumanoidRootPart.CFrame = CFrame.new(targetPosition)
  15. end)
  16.  
  17. tool.Parent = player.Backpack
Tags: Tptool
Advertisement
Add Comment
Please, Sign In to add comment