#Max value of IntValue
85 messages · Page 1 of 1 (latest)
You can use math.huge
It would be inf I think
OR
You can just write 9999 then copy, paste, copy, paste etc till it will be at 9.2Qn
How can I use math.huge function?
Huh?
local IntValue = YOUR_INT_VALUE
IntValue.Value = math.huge
But it seems like is setting to 0
Just spam 9 then copy the value and paste it again
Until it will go over 9.2Qn
So that would be 19 of 9
9e19
(Currently testing this)
Not working
It gets to 0 whenever it passes 9qn.
If you are gonna use math.huge on an int value it will set to 0 but if you are using it to a number value it will set it to inf
Um.. no...
???
Thats because you cant use letters in an intvalue
Then how am I supposed to do this:
local clicks = Instance.new("IntValue")
clicks.Name = "clicks"
clicks.Parent = leaderstats
clicks.Value = math.huge
Why you want to set it to a large number anyway?
Because I want it to be higher than 9qn?
I wanna make some sort of clicker simulator.
As I told you yesterday.
Welp, you can do it the shitty way by just setting the value to this number:
9223372036854775807
I have a really bad memory so I dont remember
So whenever it gets to "9223372036854775806" I must set it to "9223372036854775807", right?
It can't go higher that 9Qn no matter what you do
Abbreviation ;-;
???
You can use this module
Not mine, I got it from the internet but I did some modifications to work better
With this you can have incredible numbers
Without a module like this, you wont be able to get numbers above 9.2Qn
Wdym?
This is should explain everything
but you would need some knowledge
Ok
Its just the way an int value is saving
That the maximum number of bytes it can hold
My brain exploded
IntValue store 64 bit integer which means it would be 2^63-1 which is around 9.2Qn
You got me lost so hard, even yesterday was easier.
Up for about 2 hours of explanations?
How to use BigNum or what bit integer are and how they are saving the values? lol
You know how to use modules?
Create a module script, place it where both client and server can have access, that would be Replicated Storage and require the module in the scripts you need it
Just so you know, you would have to problably redo everything you have done now
You CANNOT use BigNum and normal numbers, like 759237
Why?
In Replicated Storage you can just store stuff for both client and server to access and while in there, you can see the objects and scripts wont run, just the modules when they are required
A week ago, I've tried making my intvalues from client to server side with remote event and replicated storage, while the only thing I had to do was to change my intvalues on server scripts..... I lost hours trying to understand what the hell are remote event
** You are now Level 9! **
Trust me, you would need remote events just when you use the special services from client and when you want to make something on server that only one client would see
Too hard for now.
;-;
.
You want or?
The thing is that I don't wanna redo everything.
When I said everything I meant to say scripts where you compare, add or substract values
For example, a reset layer button where you check it player has enough X currency, you would need to replace that line by using BigNum module
I will ask again, do you want to use BigNum? Yes or no
Not for now. I'll try understanding this when I'll be more experienced and better overall. But still, thanks for your help, you helped a lot, not only today but also yesterday and a few days / weeks ago.
By using BigNum you would have to edit some scripts but by not using BigNum your game will end at 9.2Qn
Aight, no problem
numbervalues go up to 1e308
Oh yea, I forgot