So for my game I made a leader board and for this script is supposed to change the value of money in the leader board. The issue is in the variable moneyValue.
local moneyValue=game.Players[name]leaderstats.money.Value
local clickDetector=Instance.new("ClickDetector")
The error is: ServerScriptService.Buy script:2: '=' expected near 'local'
Anyone know how I can fix this

1 comment
Nothing wrong with line 2, but I did find that you didn't put a "." by Players[name]leaderstats
Needs to be Players[name].leaderstats