So basically I was wondering how to make a function that would check to see if all the players IntValue is set to 0 or if one person's IntValue is set to 1.
I know this may be useless, but I think it might help:
function playersCurrentlyPlaying()
for loopTime, loopPlayers in ipairs (game.Players:GetChildren()) do
if loopPlayers.playValue.Value == 1 then
return true
else
return false
end
end
end
I would appreciate it if you showed me how to do it, thanks!

4 comments
Does that work?
you need to use a flag and return it at the end of the loop
This doesn't really help at all, could you possibly explain it?
added a description