Need Help With Money Gui

So I have a money Gui where I want a players leader stats data store amount to show up in the Gui, but fore some reason its not working please help!

local stats = game.Players.LocalPlayer.leaderstats:FindFirstChild("Coins") -- Change "Coins" To your sort of currency.

stats.Changed:Connect(function()
	script.Parent.Text = stats.Value
end)

Try using this:

local stats = game.Players.LocalPlayer.leaderstats:WaitForChild("Coins") -- Change "Coins" To your sort of currency.

game:GetService("RunService").Heartbeat:Connect(function()
	script.Parent.Text = stats.Value
end)

Use GetPropertyChangedSignal, like this:

local plr = game.Players.LocalPlayer
plr.Coins:GetPropertyChangedSignal("Value"):Connect(function()
script.Parent.Text = plr.Coins.Value
end)

do not use :GetPropertyChangedSignal, the Changed event only passes the changed value for ValueBase objects and should be used instead.

  ValueObject.Changed:Connect(function(new)
  -- update UI etc. to show the new value, passed above
  end)
1 Like

Your script looks fine. The problem probably is with your “Coins” Value. Where is it? The script expects it to be under game.Players.Plethoa.leaderstats.Coins.

If you include a screenshot of your object explorer it will be easy to find the problem. Please also include where the script is found.