local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild("leaderstats")
if leaderstats then
print(leaderstats)
local MoneyValue = leaderstats:WaitForChild("Money")
if MoneyValue then
script.Parent.Text = MoneyValue .. "$"
end
end
its not working and not printing it and i don't know why

4 comments
Still says "Players.MrBucketOfficial.PlayerGui.ScreenGui.TextLabel.Script:1: attempt to index nil with 'WaitForChild' "
If the textlabel works, then ignore it. That happens because the script was activated first before the gane finished loading. That’s a common thing. If it doesn’t work klet me know and I might give a solution.
game*
It must be in a localscript