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

How would you make a counting script?

I know i don't want do

script.Parent.Text = 125
wait(1)
script.Parent.Text = 124

Cause that is the most inefficient way to do so, How would I make a proper count down script? I have the basic outline

function Changed()


end
script.Parent.Parent.ScrollingFrame.Sound.Changed(SoundId)

1 answer

This bit of code will countdown from your desired time amount to zero:

local Time = 150

for i = Time, 0, -1 do
	Time = i
	wait(1)
end

From here you can take the variable Time and make a countdown timer quickly by adding something like this to the script:

gui.Text = tostring(Time)

1 comment

0

Thanks

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