Hello,
I’m currently writing a script to detect if any players have a BoolValue named ‘playingRound’. If at least one player has the BoolValue, it should print(“Someone is playing in the round.”) If no players have it, it’s supposed to print(“Nobody is playing in the round.”)
Regardless of whether anyone has the BoolValue or not, the script does not seem to function.
(For context, the BoolValue’s parent is the player.)
for i,v in pairs(game.Players:GetPlayers()) do
if v:FindFirstChild("playingRound") then
print("Someone is playing in the Round")
else
print("Nobody is playing in the round")
end
end
Thank you for any help.