Int value only going up in whole numbers

THello,
I was wondering if Int values only increase by whole numbers? Im trying to change a value when the player gets a rare number like 0.12 and I have some code that checks if its lower than their best RNG so far. It only seems to work until 0 though, for example if a player gets 0.12 it will change the value to 0 not 0.12. Is there any fix for this?

if BaseOdds[i] <= PlrStats:FindFirstChild("BestRng").Value then
				PlrStats:FindFirstChild("BestRng").Value = BaseOdds[i]

Sounds like you’re using a Int baseValue for your “BestRng” value. Change it to a numberValue instead as it allows for decimals.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.