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

I need to make suffix cash like miner's haven!HELP? [closed]

Asked by
Kenley67 -12
7 years ago
Edited 7 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

My game is really boring when it just says 1000 cash in the gui I made so someone help me!

repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Stuff
local cash = game.Players.LocalPlayer.Stuff.Cash
local suffixes = {'','K','M','B','T','q','Q'}
cash.Changed:connect(function(property)
    local val = cash.Value
    script.Parent.Text = val
    for i=1, #suffixes do
        if val < 10^(i*3) then
            script.Parent.Text = val..' '..math.floor(val/((10^((i-1)*3))/100))/(100)..suffixes[i]
            break
        end
    end
end)
2
Um... we aren't sure what you need help with... "My game is boring with just 1000 cash please help me!" Doesn't really tell us what you need help with lightpower26 399 — 7y
1
How do you expect help with this? Like, you don't even tell if the code works or not (i suppose it doesn't) but still. Are there any errors? Have you tried like, atleast 2 methods? RubenKan 3615 — 7y

Closed as Non-Descriptive by RubenKan

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 7 years ago

This isn't a request site, besides your question wasn't well explained and I have problems understanding what you're having trouble with.

Ad