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

Why isnt this working?

I am attempting to make a countdown code that works on a GUI, here is what I have so far.

function countdown(number)
        for i = number, 1, -1 do
                game.Workspace.timer.Value = i 
end   

There is a NumValue called "timer" and this is the code inside the GUI that is being used as a local script.

workspace.timer.Changed:connect(function(v)
	script.Parent.TextLabel.Text = v
end)

2 comments

0

Does the output give you an error?

0

Nope

1 answer

You function is missing an end.

:)

1 comment

0

It dosen't seem to work. Still not counting down.

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