So I got a small setup of when the block is touched it adds 1 to the block, but I had a problem occur that it skipped over the 20 mark, didn't go ah but when it got to 25, it went ahhh, how do I make it so I can go from 20 to 24 and still cause the reaction?
number1 = script.Parent.Name number2 = 1; number3 = 10; number4 = 40; number5 = 250; debounce = false function math() if script.Parent.Name == "20" then print"ah" end end function math2() if script.Parent.Name == "25" then print"ahhhh" end end
(Note: I do plan on making the numbers bigger, so I would prefer something that could work for say... 1-100 as a variable.)