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

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

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 comments

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

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?

1 answer

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

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