In my game Adventure Vania (Alpha) - Roblox When you make an enemy with too much of a big reward like 9999999999999999999999999999999999999999999999999999999999999999999999 xp It doesn’t work. Do you guys know how to solve it. The script I used is here: Credits to precious beam
Roblox Studio : Stats V2 + Datastore [Outdated] - YouTube
I’m afk rn! I’ll check back in this post when I’m back!!
Back! Any help is appreciated! Thanks!
your topics need some codes for explanations
to make your topic is simple to read, add some descriptive codes for make sure you has been creating with a script
then, the poster will setting your codes until done
Oh. I’ll add the script tomorrow because right now I’m in mobile. When you use the kit go to the enemy and click reward and that’ll be the script
like this:
local apple = workspace.Apples
apple.Clone()
after fix:
local apple = workspace.Apples
apple:Clone()
I’ll post the code tomorrow when I’m back on pc.
My first assumption is because you’re using IntValues, which can’t hold such large integers
Oh!! Makes sense. How do I add another type of value that can contain large values without breaking the whole structure of the game.
You could put the amount of damage into categories, ect. starting at “categoryA” for all numbers below a thousand, when reaching over a thousand, the damage goes into “categoryB” and numbers counted will move one step to the left. Meaning that numbers 1-999 will count normally, but numbers above that will count as “1.1k”, “1.24k”, and since we know these numbers are under “categoryB” we also know, that even though they’re technically only “1.1” and “1.24”, they’re still higher than for example “2” in “categoryA”
Edit: I described it as damage, you can do it with any numbertype, like experience, gold ect.
Could you please specify I don’t understand…
It’s really hard to specify, try and re-read the reply.
Use NumberValues instead of IntValues, they have no cap I believe
My mistake but the cap is still astronomically higher than an IntVaue
Can you tell me a script to put in cause I can’t understand it
Ok I try really quick to explain, since I have to go.
You have a purse with different currencies. Gold, Silver and Copper.
Let’s say you have 239 copper. Instead of having them saved as 239 copper, you for each 100 copper, turn them into silver. So the new number would be 2 silver and 39 copper.
Let’s say you have 504 silver (equivalent to 5040 copper), then we store it as 5 gold, 4 silver and 0 copper.
Edit: if you’ve played the game World of Warcraft, then the system would make sense right away.
Oh! So in this situation I’m converting Int value to number value
Edit: I’ve never played world of warcraft
Not really, in this situation you’re converting IntValueA to IntValueB, and then making so IntValueB is for example 100 times more worth than IntValueA. And this way, we just did so we could have the maximum number * 100
The main difference between a NumberValue and a IntValue is, that NumberValue can contain decimals, and a IntValue cannot. So I always go with a IntValue when possible, because I rarely want decimals in my storing of numbers.