I am trying to make value1 +1 when value0 reaches 100, though it doesn't work.
val0 = script.Parent.val0 val1 = script.Parent.val1 while true do wait() if val0.Value == 100 then val1.Value = val1.Value +1 else end end
Any help would be greatly appreciated. Thanks!
Hmm, I'm not quite sure why that didn't work for you, but try this:
val0 = script.Parent:WaitForChild("Val0"); val1 = script.Parent:WaitForChild("Val1"); while wait() do if val0.Value >= 100 then val1.Value = val1.Value + 1; else print("Val0 is less than 100 ("..tostring(val0.Value)..")"); end end