Advertisement
EconomicSerg

Teleport Tool

Jan 15th, 2021
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. -- Teleport script.
  2. -- Insert a tool
  3. -- Insert a LocalScript
  4. -- There needs to be a handle!
  5.  
  6. local tool = script.Parent
  7. local player = game:GetService("Players").LocalPlayer
  8.  
  9. tool.Activated:Connect(function(mouse)
  10.         mouse.Button1Down:Connect(function()
  11.                 player.Character.HumanoidRootPart.CFrame = CFrame.new(mouse.Hit.p)
  12.         end)
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement