meshInstances undefined?

The materials on my counter are change as I would expect, BUT I get this error saying

meshInstances undefined.
Here is screenshots of my code and game error messages.

The problem appears to be with the switch code.

When I use the traditional if/else code it works fine.

In the middle of adjusting the code then the servers seemed to freeze. Can’t save any new changes, this happened a few weeks ago, curious if this will be a reoccurring issue?

I’m assured you guys will fix this when you guys wake up, lol but perhaps there is some underlying problem in the tool?

-AJ