Elvisfofo_rblx

Teleport Tool

Jul 13th, 2025 (edited)
1,261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local player = Players.LocalPlayer
  3. local mouse = player:GetMouse()
  4.  
  5. local tool = Instance.new("Tool")
  6. tool.Name = "Teleport Tool"
  7. tool.RequiresHandle = false
  8. tool.Parent = player.Backpack
  9.  
  10. tool.Equipped:Connect(function()
  11. mouse.Button1Down:Connect(function()
  12. local character = player.Character
  13. if character and mouse.Hit then
  14. local root = character:FindFirstChild("HumanoidRootPart")
  15. if root then
  16. local pos = mouse.Hit.Position + Vector3.new(0, 3, 0)
  17. root.CFrame = CFrame.new(pos)
  18. end
  19. end
  20. end)
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment