I'm having trouble and I have tried multiple types of loops but nothing seems to work, basically I am trying to have a
while true do
-- if 2 players have 'CanPlay' set to true then
-- continue code.
which runs through the players and searches to see if their value "CanPlay" boolvalue is set to true. I know this sounds like a request, but it's not.. and I tried! Please leave help if you can!
My attempts:
if game.Players.NumPlayers >= PlayerNumber and game.Players.NumPlayers.CanPlay == true then then -- Wasn't sure..
-- Tried using loops, the while true do loop is the entire game I have setup.
while true do
if game.Players.NumPlayers >= PlayerNumber then
for i, v in pairs(game.Players:GetPlayers()) do
if v.CanPlay.Value == true then
-- Not sure how to continue.
end
end
-- Code
else
end

2 comments
Could you put in one of your more full attempts and then we may show you where it went wrong?
Sure