Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.