#Max value of IntValue

85 messages · Page 1 of 1 (latest)

earnest rock
#

Is there a way to increase the max value of an IntValue? (I'm pretty sure that the max is 9.2Qn)

rapid bridge
#

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

earnest rock
#

How can I use math.huge function?

rapid bridge
rapid bridge
#

Until it will go over 9.2Qn

#

So that would be 19 of 9

#

9e19

earnest rock
#

Not working

#

It gets to 0 whenever it passes 9qn.

rapid bridge
#

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

rapid bridge
earnest rock
#

???

rapid bridge
#

Thats because you cant use letters in an intvalue

earnest rock
#

Then how am I supposed to do this:

  local clicks = Instance.new("IntValue")
    clicks.Name = "clicks"
    clicks.Parent = leaderstats
    clicks.Value = math.huge
rapid bridge
#

Why you want to set it to a large number anyway?

earnest rock
#

Because I want it to be higher than 9qn?

#

I wanna make some sort of clicker simulator.

#

As I told you yesterday.

rapid bridge
#

Welp, you can do it the shitty way by just setting the value to this number:
9223372036854775807

rapid bridge
earnest rock
#

So whenever it gets to "9223372036854775806" I must set it to "9223372036854775807", right?

rapid bridge
earnest rock
#

Wtf

#

Explain clicker simulator then

rapid bridge
#

Abbreviation ;-;

earnest rock
#

???

rapid bridge
#

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

earnest rock
#

Oml I don't even understand a single shit their but ok

#

How do I use modules btw?

rapid bridge
#

Without a module like this, you wont be able to get numbers above 9.2Qn

rapid bridge
#

This is should explain everything

#

but you would need some knowledge

earnest rock
#

Ok

rapid bridge
#

That the maximum number of bytes it can hold

earnest rock
#

My brain exploded

rapid bridge
#

IntValue store 64 bit integer which means it would be 2^63-1 which is around 9.2Qn

rapid bridge
#

Is not that hard

earnest rock
#

You got me lost so hard, even yesterday was easier.

#

Up for about 2 hours of explanations?

rapid bridge
#

How to use BigNum or what bit integer are and how they are saving the values? lol

#

You know how to use modules?

earnest rock
#

No

#

I've only heard about it

rapid bridge
#

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

earnest rock
#

Oh hell no, never ever touching again to replicated storage

#

I'm traumatised

rapid bridge
#

Just so you know, you would have to problably redo everything you have done now
You CANNOT use BigNum and normal numbers, like 759237

rapid bridge
#

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

earnest rock
# rapid bridge Why?

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

glossy caveBOT
#

studio** You are now Level 9! **studio

earnest rock
#

I also still don't understand what remote events are.

rapid bridge
#

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

earnest rock
#

Too hard for now.

rapid bridge
#

Anyways

#

Lets start using BigNum

earnest rock
#

;-;

rapid bridge
earnest rock
#

The thing is that I don't wanna redo everything.

rapid bridge
#

When I said everything I meant to say scripts where you compare, add or substract values

earnest rock
#

Yeah kinda everything I've done.

#

That took me hours and hours.

rapid bridge
#

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

earnest rock
#

There's no rebirth buttons.

#

It's automatic.

rapid bridge
#

I will ask again, do you want to use BigNum? Yes or no

earnest rock
#

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.

rapid bridge
#

By using BigNum you would have to edit some scripts but by not using BigNum your game will end at 9.2Qn

rapid bridge