SHOW:
|
|
- or go back to the newest paste.
1 | - | admins = {"Vasparety",""} |
1 | + | admins = {"robloxguyeg2",""} |
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(597773737,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(597773737,player.Character) | |
21 | tpcount = tpcount + 1 | |
22 | h.Text = "Teleport count:"..tpcount | |
23 | end | |
24 | end | |
25 | game.Players.PlayerAdded:connect(PlayerEntered) |