-- Takes every player, except AFK players and put them on the maps spawn points
for i = 1, #Players do
if Players[i]:WaitForChild("Backpack"):WaitForChild("AFK") == false then
local GetSpawns = PMCopy.Spawns:GetChildren()
local Spawns = GetSpawns[math.random(1, #GetSpawns)]
local Char = game.Workspace:FindFirstChild(Players[i].Name)
Players[i]:WaitForChild("Backpack"):WaitForChild("Playing").Value = true
Char:MoveTo(Spawns.Position)
end
end
For some reason, the if statement is not working... no errors show up. Please help!
