Need help making cash display with topbar plus

  1. What do you want to achieve? Keep it simple and clear!
    Make a topbar money display.
  2. What is the issue? Include screenshots / videos if possible!
    The cash doesnt display in the UI from leaderstats cash.
  3. What solutions have you tried so far?
    I tried doing research, couldn’t find what i was looking for.

local Icon = require(game:GetService("ReplicatedStorage").Icon)
local LocalPlayer = game:GetService("Players").LocalPlayer
local leaderstats = LocalPlayer:WaitForChild("leaderstats")
local Cashdislplay = leaderstats:WaitForChild("Cash")

Icon.new()
:setLabel("$"..Cashdislplay)
:set("iconFont", Enum.Font.Roboto)
:setMid()
:setCornerRadius(0, 8)
:lock()

You should try using this:

That is what im using but im having problem with it not working.

Is there any error output? as it seems to work when assigning a normal string

:setLabel("$"..Cashdislplay.Value)

There seems to be no erros since i added the :setLabel("$"..Cashdislplay.Value) thanks to @Pumpky. That fixed the UI to be in the middle but now its showing that I have 0$.

Thank you, This fixed the UI topbar problem but now it does not update to the user current cash.
image

Cashdislplay.Changed:Connect(function()
:setLabel("$"..Cashdislplay.Value)
end)

now theres error saying expected a assignment or function call.

maybe try replacing THAT with (add IconCool to start of every : )

local Iconcool = Icon.new()

and for changed u can do the thing now

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.