local count = 60 local gui = script.Parent.Parent.Numbers local text = gui.Text for i=0,60 do text = count .. "sec" count = count - 1 wait(1) end text = "Charged!"
Sorry about the title, it's just scriptinghelpers being a beyoaotch. Anyway, script is above. Don't know what's wrong, there is no output log.
First off all, your loop is running 61 times which i assume you do not want. And there is a "more effective" way to do this. Also, you change the text before you change the count.
local gui = script.Parent.Parent.Numbers local text = gui.Text for i=60,1,-1 do --Going from 60 to 1, decreasing by 1 each time text = i .. " sec" wait(1) end text = "Charged!"
In this script you wont need the count value.