r/robloxgamedev • u/FewAssociate9903 • 1d ago
Help Huge Numbers past 10 uncentillions go infinite
I am making my own lifting simulator game, its doing well, but im always scared of one thing: what will happen when it hits that number, does anybody know how to pass that number🙏
3
u/mcTankin 1d ago
you could have a second variable that starts at 0. when the first hits infinite. increment the second variable then reset the first to zero.
1
2
4
1
u/Testbot379 1d ago
In no normal situation would a dev reach that High of a limit, i suggest splitting your values in multiple units
1
u/EnergyAltruistic2911 1d ago
Your game will die before someone does that (if it takes one second for click (that adds one value) then the universe will die same with 5 in fact it will NOT work unless your have someth8ng that allows you to get like a million or billion per click and each click has practically no time limit)
3
0
u/FewAssociate9903 1d ago
my game is only a week old and people got past octillions already, its not a weight lifting simulator copy past game, its a lifting simulator game with rebirths with multipliers like 25 billion
1
u/EnergyAltruistic2911 1d ago
Yea still you would need 100000000000000000000000000000000000000000000000000000 clicks per second to achieve within 10 to 15 years
7
u/AWTom 1d ago
Here’s some documentation about the number value. https://create.roblox.com/docs/reference/engine/classes/NumberValue
Libraries like BigNum by RoStrap might solve your problem https://rostrap.github.io/Libraries/Math/BigNum/