Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do I fix error ServerScriptService.Buy script:2: '=' expected near 'local'?

Asked by
emrek 7
5 years ago

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

0
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** Epuuc 74 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

put a "." after [name]

Ad

Answer this question