|
Hello, I made an script and :
if players[i]Settings.AFK.Value -= true then
________________
- ServerScriptService.Gamescript:105: 'then' expected near 'Settings'
Please help! |
|
|
|
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 -= |
|
|
@Noble
Same thing if i add ~
Little more of the script :
wait(1)
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
end
end
end
end
|
|
|
|
At line 7, you have Setting instead of Settings. Could that be part of it? |
|
|
|
I was wrong, it didn't help, ######################### |
|
|
|
Any errors? What happens vs. what do you expect to happen? |
|
|
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? |
|
|
Okay, nevermind, how do I close this? |
|