Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

CountDown onChanged problems? [Not solved]

I don't know why, but when the soundId changes the surfaceGui dose not show the countdown, What am I doing wrong?

local CountDownFrom = 125

script.Parent.Parent.ScrollingFrame.Sound.SoundId.Changed:connect(function()
    for i = 1,CountDownFrom,1 do
        script.Parent.Text = CountDownFrom - i
        wait(1)
    end
end)

1 comment

0

Check again

1 answer

local CountDownFrom = 125

script.Parent.Parent.ScrollingFrame.Sound.SoundId.Changed:connect(function()
    for i = 1,CountDownFrom,-1 do
        script.Parent.Text = CountDownFrom..""
        wait(1)
    end
end)

1 comment

0

:(

This discussion is preserved as it was. New answers, comments, and votes are closed.