spidey_v6

Untitled

Nov 11th, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. local mouse = plr:GetMouse()
  3.  
  4. local tool = Instance.new("Tool")
  5. tool.RequiresHandle = false
  6. tool.Name = "Click Teleport"
  7.  
  8. tool.Activated:Connect(function()
  9. local root = plr.Character.HumanoidRootPart
  10. local pos = mouse.Hit.Position+Vector3.new(0,2.5,0)
  11. local offset = pos-root.Position
  12. root.CFrame = root.CFrame+offset
  13. end)
  14.  
  15. tool.Parent = plr.Backpack
Add Comment
Please, Sign In to add comment