Hello, so I was wondering how to wait until a for loop finished looping and than check if a player has a value inside of him but I have a problem the for loop has to loop through all of the players then check if a player have a value inside of him how can I do that?
Here is my code:
for i, v in pairs(game.Players:GetPlayers()) do
if v:FindFirstChild('ImposterValue') then
game.ReplicatedStorage.Imposters:FireAllClients(v.Name)
break
else
game.ReplicatedStorage.Crewmates:FireAllClients(v.Name)
end
end
Thank you!