Okay, this is new. Don’t think I’ve ever run into this before.
In one of my functions, I have created several groups. I am able to manipulate those groups within the function using .isVisible without any issue.
But when I try to remove the groups using :removeSelf() I get an error:
Attempt to index global ‘CategoryMenuGroup’ (a nil value)
This occurs whether I put those calls in the same function, or at the start of another external function that is called by the function.
What would cause this? What should I look for?