Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I make an IntValue with decimals?

Asked by 1 year ago

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

Log in to vote
3
Answered by
manith513 121
1 year ago

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.

0
Lmk if you have any questions. manith513 121 — 1y
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 sixfirez 33 — 1y
1
use math.floor or smth in your leaderboard script. ordered datastores can't store decimal numbers, only integers BulletproofVast 1033 — 1y
0
he said he want decimals in his leaderboard, but it's impossible T3_MasterGamer 2189 — 1y
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. manith513 121 — 1y
Ad

Answer this question