IntValue can only go up by 1 or 0?

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.

1 Like

Thanks, I was used to using intiger values because I don’t use decimals much and I kinda forgot what integer meant

IntValues only count by 1, you need to use a NumberValue for what your looking to do.

1 Like