Please click on the picture of the error that seems similar to yours.

Part of my script is underlined in red or ')' expected (to close '(' 

Attempt to index a nil value

Not a valid member of

Blue underline in script or "Attempt to index global"

Did this answer your question?