You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I’m making a rarity game and all the rarities are stored like number
so it goes
1 - Common
2 - Uncommon
3 - Rare
4 - Epic
5 - Legendary
and more -
What is the issue? Include screenshots / videos if possible!
basically when i get the 10th rarity it doesnt count.
If i have Common rarity the 10th rarity counts but once i get uncommon it overrides the rarity
(the print says the new best rarity) -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried changing the values of the table to like 20 or 30 but it breaks the game
and i tried looking for solutions but couldnt find any
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
this is the code which makes it choose the best rarity
if RolledNumber >= BestRarityNumber.Value then
BestRarityNumber.Value = RolledNumber
BestRarity.Value = RolledRarity
end
(the print says the new best rarity)