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