Good morning/afternoon/evening!
So I’m making a round based game with an intermission. I’m making the intermission count down from 20 to 1. When it gets to one, I change the status to “Choosing Map…” for 2 seconds, then make it say “(name of map goes here) has been chosen!”. The map-related statements work just fine, but the intermission countdown is only visible for a fraction of a second, and because of this, I can’t even see if it actually counts down or not when I’m testing the game. Here’s the code:
for i = 20, 1, -1 do
Status.Value = "Intermission ("..i..")"
if Status.Value == "Intermission (1)" then
Status.Value = "Choosing map..."
end
end
I tried adding a wait(20)
after this line:
Status.Value = "Intermission ("..i..")"
The intermission was visible for the full 20 seconds, but it never counted down. Any ideas as to what may be causing the issue? I’m a beginner at scripting, so I’m learning from my mistakes day by day. Thanks for reading!