Advertisement
1x11337

Click To Teleport Tool

Sep 30th, 2018
5,484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mouse = game.Players.LocalPlayer:GetMouse()
  2. tool = Instance.new("Tool")
  3. tool.RequiresHandle = false
  4. tool.Name = "Click To Teleport"
  5. tool.Activated:connect(function()
  6. local pos = mouse.Hit+Vector3.new(0,2.5,0)
  7. pos = CFrame.new(pos.X,pos.Y,pos.Z)
  8. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  9. end)
  10. tool.Parent = game.Players.LocalPlayer.Backpack
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement