Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do you make a gui that tells you the Number oh health or cash you have?

Asked by
Tizzel40 243 Moderation Voter
6 years ago

like at the top there will be a gui that has a NUMBER of what health or cash or what any value of what thing or item (s) you have

1 answer

Log in to vote
0
Answered by 6 years ago

put this code in a localscript as a child of the gui you want to change

local cash= game.Players.LocalPlayer.leaderstats.Cash
script.Parent.Text = cash.Value
cash.Changed:Connect(function()
    script.Parent.Text = cash.Value
end)
0
thx Tizzel40 243 — 6y
Ad

Answer this question