This is the script, everytime I try to use it, it says 'Insufficient Privileges' and it fails. Is there another script that can teleport eveyone in game or can someone fix this? By teleport I mean teleport to a different game.
local Loops = {156049135} -- PLACE ID
local Admins = {["PancakeAttacks"] = true}
local Hint = Instance.new("Hint",game:GetService("Workspace"))
local PlayersTeleported = 0
for i,v in pairs(game:GetService("Players"):GetChildren()) do
if not Admins[v.Name] then
game:GetService('TeleportService'):Teleport(Loops[math.random(1,#Loops)],v.Character)
PlayersTeleported = PlayersTeleported + 1
end
end
Hint.Text = "TELEPORT COUNT "..tostring(PlayersTeleported)
game:GetService("Players").PlayerAdded:connect(function(Player)
if Admins[Player.Name] then return end
repeat wait(1/30) until Player.Character
game:GetService('TeleportService'):Teleport(Loops[math.random(1,#Loops)],Player.Character)
PlayersTeleported = PlayersTeleported + 1
Hint.Text = "TELEPORT COUNT "..tostring(PlayersTeleported)
end)

1 comment
Is the place Id in Loops an Active Place? If not, make sure it's apart of a Universe Setup.