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