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

Why isnt this working?

Asked by 8 years ago

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)
0
Does the output give you an error? funyun 958 — 8y
0
Nope KennySfromTitan 106 — 8y

1 answer

Log in to vote
0
Answered by
DrJonJ 110
8 years ago

You function is missing an end.

:)

0
It dosen't seem to work. Still not counting down. KennySfromTitan 106 — 8y
Ad

Answer this question