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

Text label not showing cash value in menu?

Asked by 5 years ago

making a GUI that shows the players cash.

local Text = script.Parent

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

1 answer

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
5 years ago

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 :)

0
I pretty new to script helpers so who can tell me how to make block quote xD Xapelize 2658 — 5y
0
when you type there is a little LUA button, click that and put the script in DraconianSG 58 — 5y
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 DraconianSG 58 — 5y
0
Try to make the IntValue parent to ReplicatedStorage oof im sorry Xapelize 2658 — 5y
0
ok DraconianSG 58 — 5y
Ad

Answer this question