Im getting this error when I run this script Players.Player.PlayerGui.Shop.Frame.Cash.LocalScript:2: attempt to index local 'property' (a number value) can anyone explain how to fix the script and what it means?
script.Parent.Parent.Parent.Parent.Parent.stats.money.Changed:connect(function(property) script.Parent.Text = "$"..property.Value end)
If in case your stats is In the player, Like this Diagram given that you have player = game.Players.LocalPlayers. Player --> Stats.money And Money is a int/double Value And the script is within the model then Then
player.stats.money.Changed:connect(function() script.Parent.Text = "$".. player.stats.money.Value -- the first two parts of this code means that the ---------script is under the an Object and this Object above it contains a TextLabel, called Text. --as a result The Text becomes this money.Value. end)