Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

CountDown onChanged problems? [Not solved]

Asked by
NotSoNorm 777 Moderation Voter
10 years ago

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)
0
Check again HexC3D 830 — 10y

1 answer

Log in to vote
0
Answered by
HexC3D 830 Moderation Voter
10 years ago
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)

0
:( NotSoNorm 777 — 10y
Ad

Answer this question