box = script.Parent
while wait() do
number = tonumber(box.Text)
if number > 90 then
box.Text = 90
elseif number < 0 then
box.Text = 0
end
end
I get the error attempt to compare number with nil
I could be doing something dumb, I never used tonumber, but it's neccesary here.

1 comment
Ouch to think this was all a cuz of a typo. Thanks.