Karap

Tool tp

Mar 22nd, 2023
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. mouse = game.Players.LocalPlayer:GetMouse()
  2.  
  3. tool = Instance.new("Tool")
  4.  
  5. tool.RequiresHandle = false
  6.  
  7. tool.Name = "Equip to Click TP"
  8.  
  9. tool.Activated:connect(function()
  10.  
  11. local pos = mouse.Hit+Vector3.new(0,2.5,0)
  12.  
  13. pos = CFrame.new(pos.X,pos.Y,pos.Z)
  14.  
  15. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  16.  
  17. end)
  18.  
  19. tool.Parent = game.Players.LocalPlayer.Backpack
Add Comment
Please, Sign In to add comment