Advertisement
dried_

Teleport Button Script | Roblox Studio

Nov 22nd, 2020
1,138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. wait(1)
  2. player = game.Players.LocalPlayer
  3. button = script.Parent
  4. local debounce = false
  5.  
  6. function teleport()
  7. if not debounce then
  8.  
  9. debounce = true
  10. LowerTorso = player.Character.LowerTorso
  11. LowerTorso.CFrame = game.Workspace.telepad1.CFrame
  12.  
  13. end
  14. end
  15. button.MouseButton1Click:connect(teleport)
  16.  
  17. while true do wait()
  18. debounce = false
  19. wait(1)
  20. end
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement