Hello everybody! So I am making a minigame script. I made a boolvalue true on each player if they joined the minigame. And the boolvalue false if they died.
I want to make a script that makes the game end by reaching the max time or everybody died in the minigame. But it seems to be not working. I hope I get a soulution. Thank you!
The boolvalue name's is Playing.
for i = 20, 1 , -1 do
wait(1)
print("Time left: " .. i .. " second(s)!")
end
print("Game ended!")
end
while wait() do
for i, v in pairs(game.Players:GetPlayers()) do
if v.Playing.Value == false then
print("Game ended!")
end
end
end

1 comment
Try seperating script. Cuz u cant run those in the same time in one script.