Help? I am trying to make it so when the soundId changes, on the button it will count down from 125 on the scripts parents text. This wont work?
function onChanged()
local Time = 125
for i = Time, 0, -1 do
Time = i
wait(1)
end
script.Parent.Text = tostring(Time)
end
script.Parent.Parent.ScrollingFrame.Sound.SoundId:connect(Changed)

6 comments
This works, Thanks. Altho I realized it would be an easier task if it was onChanged, How would you do that?
check my post i redid it for you and i didnt test make sure the location is correct and +1 pl0x?
Thanks, I cant +1 but I would if I could.
For some reason that's not working, Is onChange even a function?
is there an error + .Changed is an event and no thats not a function
There is no error as it says