I am trying to access a child of a folder using a script. I also have the script analysis open. However, during linting, I get a warning that says:
W000: (1,28) Key ‘ShipEvents’ not found in class ‘Folder’
When I look at the explorer, Ship Events is clearly a member of the folder, and intelisense even shows that it is a member. In fact, I can even print out Ship Events. This is what I wrote down:
inputEvents = script.Parent.ShipEvents -- warning
print(inputEvents) -- prints correctly
I think this is some type of bug as it only occurs with objects that are in the class folder, model, or script. The warnings are quite annoying since I’m accessing multiple folders through multiple scripts. If it is a bug, it needs to get fixed because a folder or a model seem like a very natural object to have child members.
