How to make a script show the amount of money a player has on a text label?

I recently made a currency system for my game to make money and to have more fun with things, but the thing is, I have a script that stops the leaderboard from showing up, to give it a website aesthetic. How do I make a script show the amount of money the player has on a text label to keep the same website aesthetic but still showing the amount of money the player has?
Money script:


Image 7-9-21 at 3.18 PM
Text script:
Image 7-9-21 at 3.18 PM 2

You’re using leaderstats, so like

Make a textlabel, put a local script under it:

game.Players.LocalPlayer.Leaderstats.YourValue.Changed:Connect(function(val)
   TextLabel.Text = tostring(val) --Assuming it's a number. 
end)

Edit: This checks when the values changes and sets the text of the textlabel to the changed value.

So replace:

local Blox = game.Players.LocalPlayer.leaderstats:WaitForChild("Blox")

Then when you print use

Blox.Value

instead.

The reason being you’re currently indexing value of a Folder. Aside from that, don’t cache the Value otherwise it’s static and won’t update the variable Blox.