Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Text label not showing cash value in menu?

making a GUI that shows the players cash.

local Text = script.Parent

Text.Text = game.Players.LocalPlayer.Cash.Value

1 answer

You can try it doing a new IntValue at the Players.LocalPlayer inside.

local cashValue = Instance.new("IntValue") -- make a new cash value
local text = script.Parent -- the textlabel
cashValue.Parent = game.Players.LocalPlayer -- the cash value parent is localplayer
cashValue.name = "Cash"
cashValue.Value = (The starts cash value) -- change this to the starter cash value
text.Text = game.Players.LocalPlayer:WaitForChild("Cash").Value -- set the text is the localplayer money value

Hope I helped. Thanks! (And excuse my grammar please)

If it doesn't work, reply to me :)

5 comments

0

I pretty new to script helpers so who can tell me how to make block quote xD

0

when you type there is a little LUA button, click that and put the script in

0

it goes back to the original text (Cash) with the script i posted the text went to 0 but wouldn't changed when the money was increased

0

Try to make the IntValue parent to ReplicatedStorage oof im sorry

0

ok

This discussion is preserved as it was. New answers, comments, and votes are closed.