OzeanSyler
(SomeRandomNoob)
March 17, 2023, 2:53pm
#1
Hello,
I wanted to make the GUI say how much money you have but it does not work.
Here is the script:
local player = game.Players.LocalPlayer
script.Parent.Text = "$"..player.leaderstats.Money.Value
player.leaderstats.Money.Value.Changed:Connect(function()
script.Parent.Text = "$"..player.leaderstats.Money.Value
end)
pls help me
Inf_Noob:
leaderstats.Value
Did you mean leaderstats.Money.Value
?
1 Like
Please send the script in which you’re creating the leaderstats. Try using :WaitForChild(). When are you executing the script? Also is it a normal script or local script?
local player = game:GetService("Players").LocalPlayer
local Money = player:WaitForChild("leaderstats"):WaitForChild("Money")
script.Parent.Text = "$"..Money.Value
Money.Changed:Connect(function(newValue)
script.Parent.Text = "$"..newValue
end)
system
(system)
Closed
March 31, 2023, 3:45pm
#5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.