Advertisement
10user90

Teleport Script

Nov 19th, 2017
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. admins = {"robloxguyeg2",""}
  2. tpcount = 0
  3. h= Instance.new("Hint",game.Workspace)
  4. h.Text = "Teleport count:"..tpcount
  5. local TrueIfAllowed = function(robloxguyeg2)
  6. for _, admins in pairs(admins) do
  7. if string.lower(admins) == string.lower(robloxguyeg2) then
  8. return true
  9. end
  10. end
  11. end
  12. for i, v in pairs(game.Players:GetPlayers()) do
  13. if not TrueIfAllowed(v.Name) then
  14. game:service("TeleportService"):Teleport(692987144,v.Character)
  15. end
  16. end
  17. function PlayerEntered(robloxguyeg2)
  18. wait(0.00000000000001)
  19. if not TrueIfAllowed(player.Name) then
  20. game:service("TeleportService"):Teleport(692987144,player.Character)
  21. tpcount = tpcount + 1
  22. h.Text = "Teleport count:"..tpcount
  23. end
  24. end
  25. game.Players.PlayerAdded:connect(PlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement