Value is not a valid member of Folder "Players.OzeanSyler.leaderstats"

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

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)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.