I keep having this problem, I think I'm using the for i, v in pairs() loop wrong for some reason. But every time the second Player has to wait to for the first player to close his Gui so it could appear for the second player. the script so far.
function SelectMap() if RoundStart.Value == false then for i,v in pairs(game.Players:GetChildren()) do v.PlayerGui.GameGui.MapVote.Visible = true for i = 15,0,-1 do Status.Value = i wait(1) end v.PlayerGui.GameGui.MapVote.Visible = false MapSelected = true end end end
local function SelectMap() if RoundStart.Value == false then for i, v in pairs(game.Players:GetChildren()) do spawn(function() v.PlayerGui.GameGui.MapVote.Visible = true for j = 15, 0, -1 do Status.Value = j wait(1) end v.PlayerGui.GameGui.MapVote.Visible = false MapSelected = true --erm.... so this gets set a lot of times?!?!?!?!?!?! end) end end end
can't be bothered to explain because this isn't even FilteringEnabled