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

Attempt to index local (a boolean value)?

This is the line that had an error in my scripting and I don't know how to fix it (just the top line):

gameInProgress.Value = true

^ that is a bool value

This is what the output says: 15:50:49.812 - ServerScriptService.Intermission Script:32: attempt to index local 'gameInProgress' (a boolean value)

1 comment

5

There is no issue with what you posted. Please include more of the script.(Including where gameInProgress is defined)

1 answer

I'm guessing gameInProgress isn't an actual instance in your game, but rather a variable you have previously declared. If so, you just don't access any Value property:

gameInProgress = true
print(gameInProgress) -->true

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