Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How can I make an IntValue with decimals?

So when I try to add +0.2 value to an IntValue, it just stays at 0 no matter how many times I click. How could I make this work?

1 answer

You need to use a number value. it is a seperate instance that you create. Number values allow any number and int values only allow integers. You can use decimals in number values. Mark this as correct if this helped.

5 comments

0

Lmk if you have any questions.

0

Yeah, i've tried that, but then my global leaderboard won't work, maybe it's the script. I can send it to you and if you would be able to figure out whats the problem i would be thankful

1

use math.floor or smth in your leaderboard script. ordered datastores can't store decimal numbers, only integers

0

he said he want decimals in his leaderboard, but it's impossible

0

Yeah unless you make your own leaderboard gui which is actually more simple than you think. Another roundabout solution in your same position I did is concatenate the different numbers after a decimal into a string so the leadeboard would show it. Though it is quite a roundabout method.

This discussion is preserved as it was. New answers, comments, and votes are closed.