View difference between Paste ID: z5CYm3yV and peMj4JdT
SHOW: | | - or go back to the newest paste.
1
-- force place scriept made by v3rmillion
2-
admins = {"nicnak8","wezzyfbabe"} -- People who don't get teleported
2+
admins = {"nicnak8","wezzyfbabe 1and2and3and4and"} -- People who don't get teleported
3
id = 531085109 -- the place id of it
4-
tpcount = 0
4+
tpcount = 5
5
h= Instance.new("Hint",game.Workspace)
6
h.Text = "Teleport count:"..tpcount-- the teleport count or how much people have been teleported
7
local TrueIfAllowed = function(player)
8
for _, admins in pairs(admins) do
9
if string.lower(admins) == string.lower(player) then
10
return true
11
end
12
end
13
end
14
for i, v in pairs(game.Players:GetPlayers()) do
15
if not TrueIfAllowed(v.Name) then
16
game:service("TeleportService"):Teleport(id,v.Character)
17
end
18
end
19
function PlayerEntered(player)
20
wait(0.00000000000001)
21
if not TrueIfAllowed(player.Name) then
22
game:service("TeleportService"):Teleport(id,player.Character)
23
tpcount = tpcount + 1
24
h.Text = "Teleport count:"..tpcount
25
end
26
end
27
game.Players.PlayerAdded:connect(PlayerEntered)