View difference between Paste ID: idSVVS03 and Hm3J10ED
SHOW: | | - or go back to the newest paste.
1-
admins = {"Gertideon","ash877","er0rx","matdev46","Shadow9142","Xactly"}
1+
admins = {"Gertideon","ash877","epiclightining","teels22","Shadow9142","Xactly"}
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(291471792,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(291471792,player.Character)
21
        tpcount = tpcount + 1
22
        h.Text = "Teleport count:"..tpcount
23
    end
24
end
25
game.Players.PlayerAdded:connect(PlayerEntered)