Do you know how to make a Cash GUI using Topbarplus V2

hello developers i have something to ask you today.
do you know how to make a Cash GUI using TopbarPlus v2

i need a little help for a game i’m working on.

so can you help me pls :frowning:

–your friend teyougin.

3 Likes

You can find a coded example at the playground:

https://www.roblox.com/games/6199274521/TopbarPlus-Playground

Here’s the code for it:

Icon.new()
	:setName("CashSpinnerIcon")
	:setRight()
	:lock()
	:setSize(100, 32)
	:give(function(icon)
		local NumberSpinner = require(replicatedStorage.NumberSpinner)
		local labelSpinner = NumberSpinner.new()
		icon:convertLabelToNumberSpinner(labelSpinner)
		labelSpinner.Name = "LabelSpinner"
		labelSpinner.Decimals = 3
		labelSpinner.Duration = 0.25
		task.spawn(function()
			while wait(0.5) do
				labelSpinner.Value = math.random(100000)/1000
			end
		end)
	end)
7 Likes

Why are you using a loop function instead of checking if the property “Value” changed?

Because it’s not using a Value object, it’s using a random number

thank you sooo much you are really the best developer ever

Oh I though it was the Leaderstat Value :upside_down_face: sorry!

it is leaderstat value. :slight_smile: :slight_smile: why you ask

This error keeps popping up

nvm, changed my leaderstats value