Hey, I've been working on a round timer on one of my games. Originally, my friend made it, so I've been making some changes to it, however I'm running into some problems with this.
I want to add a sound during the intermission period at 5 seconds, and to end at once the round starts, however I'm running into problems doing this, so it'd be nice to have some help fixing this.
This is the code for the intermission
function intermission() -- Intermission
game.ServerStorage.Counter.Value = 30
game.ServerStorage.GameState.Value = "Intermission"
local initTimeValue = game.ServerStorage.Counter.Value
local intermission = initTimeValue
while(intermission >= 5)do
Sound:Play()
wait(5)
while(intermission > 0)do
wait(1)
intermission = intermission - 1
game.ServerStorage.Counter.Value = intermission
end
end
end
The variable I'm using for the sound
local Sound = game.Workspace.Sound
