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

My timer script for an obby won't work at all. No errors in the output either. Why?

Asked by 4 years ago

I have the below script in a local script in a text label in my gui. My script does not error. It doesn't do what I want either. Why is this?

local counting = script.Parent.Parent.Counting
local timevalue = script.Parent.Parent.Time
local finished = script.Parent.Parent.Finished

while true do
    wait(0.01)
    if counting.Value == true and finished.Value == false then
        timevalue.Value = timevalue.Value + 0.01
        script.Parent.Text = "Time Taken: "..timevalue.Value
    elseif finished.Value == true then
        script.Parent.TextColor3 = Color3.fromRGB(0,255,0)
        script.Parent.Text = "Total Time: "..timevalue.Value
    end
end
0
This could be it, idk. Just first glance " GlidingPlane 28 — 4y

Answer this question