Hello, I made an script and :
if players[i]Settings.AFK.Value -= true then
- ServerScriptService.Gamescript:105: 'then' expected near 'Settings'
I have 2.
What's the definition of [i] and I see a '-=' at the end. Are you trying to make a doesn't equal? If so, use ~= to replace -=
Same thing if i add ~
Little more of the script :
message.Value = "Go!"
for i = 1,#players do
if players[i] ~= nil then
if players[i]Settings.AFK.Value ~= true then
if players[i]Character ~= nil then
players[i].Setting.Playing.Value = true
At line 7, you have Setting instead of Settings. Could that be part of it?
Happens? Nothing, really NOTHING.
(this isnt a full code)
What do I expect from this code? I know, I know, I don't know anything about scripting, I was doing a script from making a minigame series, idk what it does, and nobody will help me sooo...
And with this error messages and ANY of actions doesn't work.
Sorry but if you don't even know what your code is supposed to do, how do you expect us to help?