script.Parent.ClickDetector.MouseClick:Connect(function()
if debounce == 0 then
debounce = 1
if not (script.Parent.Parent.Y.Value == 8) then
script.Parent.Parent.Y.Value = script.Parent.Parent.Y.Value + 0.5
end
wait(0.5)
debounce = 0
end
end)
Whenever I click the button the IntValue goes up by 1, and if I change the script to say 0.25 then it just doesn’t change at all. WHY?!?!
I don’t know if you know what an integer is but an integer is a whole number. Meaning it cannot include decimals - use a number value instead if you want decimals.