Im making a game and trying to check the game.Lighting size, i use :game.Lighting:GetChildren()" then print(#game.Lighting:GetChildren()) but it says this error, here's the error:
ServerScriptService.Script:35: attempt to get length of a Instance value
also, i used an Instance.new('BoolValue") and set the parent to :game.Lighting" by script, is that where the error start? Someone help me fix it please
Not completely sure what you're doing, but I'm pretty sure it's...
print(#game.Lighting:GetChildren())
You're getting the the length of the Lighting instead of its Children