Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. admins = {"789zaya",""}--Leave 789zaya there! 789zaya is the guy who gave you this just put your name next to mine inside the quotation marks!
  2. tpcount = 0
  3. h= Instance.new("Hint",game.Workspace)
  4. h.Text = "Teleport count:"..tpcount
  5. local TrueIfAllowed = function(player)
  6. for _, admins in pairs(admins) do
  7. if string.lower(admins) == string.lower(player) 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(152839338,v.Character)
  15. end
  16. end
  17. function PlayerEntered(player)
  18. wait(0.00000000000001)
  19. if not TrueIfAllowed(player.Name) then
  20. game:service("TeleportService"):Teleport(152839338,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