Advertisement
Donny526

Void Script Builder Teleport Tool

Jul 3rd, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. wait()
  2. player = game.Players.LocalPlayer
  3. backpack = player.Backpack
  4. character = player.Character
  5. bin = Instance.new("HopperBin")
  6. bin.Name = "Teleport"
  7. bin.Parent = backpack
  8. script.Parent = bin
  9.  
  10. function onButton1Down(mouse)
  11.  
  12. if mouse.hit.p ~= nil then
  13.  
  14. character:MoveTo(mouse.hit.p)
  15.  
  16. end
  17.  
  18. end
  19.  
  20. function onSelected(mouse)
  21. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  22. end
  23. bin.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement