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
I found multiple errors in your code. Also you was trying to print an Instance and you weren't updating the UI.
Here is the fixed code:
local player = game.Players.LocalPlayer local leaderstats = player:WaitForChild("leaderstats") while wait(0.01) do if leaderstats then script.Parent.Text = leaderstats.Money.Value.."$" end end