making a GUI that shows the players cash.
local Text = script.Parent
Text.Text = game.Players.LocalPlayer.Cash.Value
making a GUI that shows the players cash.
local Text = script.Parent
Text.Text = game.Players.LocalPlayer.Cash.Value
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 :)
This discussion is preserved as it was. New answers, comments, and votes are closed.
5 comments
I pretty new to script helpers so who can tell me how to make block quote xD
when you type there is a little LUA button, click that and put the script in
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
Try to make the IntValue parent to ReplicatedStorage oof im sorry
ok