Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admins = {"Vasparety",""}
- tpcount = 0
- h= Instance.new("Hint",game.Workspace)
- h.Text = "Teleport count:"..tpcount
- local TrueIfAllowed = function(player)
- for _, admins in pairs(admins) do
- if string.lower(admins) == string.lower(player) 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(597773737,v.Character)
- end
- end
- function PlayerEntered(player)
- wait(0.00000000000001)
- if not TrueIfAllowed(player.Name) then
- game:service("TeleportService"):Teleport(597773737,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