Advertisement
Guest User

Teleport Tool Script

a guest
Oct 20th, 2018
8,116
-2
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 2
  1. -- Teleport Tool | Script By: shmek#4622
  2. bin=Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
  3. bin.Name = "Teleport"
  4.  
  5. function teleportPlayer(pos)
  6.  
  7. local player = game.Players.LocalPlayer
  8. if player == nil or player.Character == nil then return end
  9.  
  10. local char = player.Character
  11.  
  12. char:MoveTo(pos)
  13.  
  14. end
  15.  
  16.  
  17. enabled = true
  18. function onButton1Down(mouse)
  19. if not enabled then
  20. return
  21. end
  22.  
  23. local player = game.Players.LocalPlayer
  24. if player == nil then return end
  25. local cf = mouse.Hit
  26. teleportPlayer(cf.p)
  27.  
  28. end
  29.  
  30. function onSelected(mouse)
  31. mouse.Icon = "rbxassetUndecided/textures\\ArrowCursor.png"
  32. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  33. end
  34.  
  35. bin.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement