I've tried everything I can to make this LocalScript work, but it doesn't. Nothing shows up in the output.
local plr = game.Players.LocalPlayer local amofcash = plr.leaderstats:WaitForChild('Cash').Value script.Parent.Text = '$ '..plr.leaderstats:WaitForChild('Cash').Value amofcash.Changed:connect(function() script.Parent.Text = '$ '..plr.leaderstats:WaitForChild('Cash').Value end)
The changed event should be referencing the value object, not its value property. In other words, it should be Cash.Changed
and not Cash.Value.Changed
Also, use variables if you've initialized them.
Basically, your script should be changed to this:
local plr = game.Players.LocalPlayer local amofcash = plr.leaderstats:WaitForChild('Cash' script.Parent.Text = '$ '.. amofcash.value amofcash.Changed:connect(function() script.Parent.Text = '$ '.. amofcash.Value end)
Where is this LocalScript? It will only run if it's in the player's backpack, PlayerGui, PlayerScripts, the player's character model, or ReplicatedFirst.