Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admins = {"robloxguyeg2",""}
- tpcount = 0
- h= Instance.new("Hint",game.Workspace)
- h.Text = "Teleport count:"..tpcount
- local TrueIfAllowed = function(robloxguyeg2)
- for _, admins in pairs(admins) do
- if string.lower(admins) == string.lower(robloxguyeg2) then
- return true
- end
- end
- end
- for i, v in pairs(game.Players:GetPlayers()) do
- if not TrueIfAllowed(v.Name) then
- game:service("TeleportService"):Teleport(692987144,v.Character)
- end
- end
- function PlayerEntered(robloxguyeg2)
- wait(0.00000000000001)
- if not TrueIfAllowed(player.Name) then
- game:service("TeleportService"):Teleport(692987144,player.Character)
- tpcount = tpcount + 1
- h.Text = "Teleport count:"..tpcount
- end
- end
- game.Players.PlayerAdded:connect(PlayerEntered)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement