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
–your friend teyougin.
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
–your friend teyougin.
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)
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 sorry!
it is leaderstat value. why you ask
nvm, changed my leaderstats value