Have you tried making a new test project with primitives and just that code to see how it functions, I had some script just randomly stop working for me before, but it worked when I rebuilt my project from scratch.
Trending Articles
More Pages to Explore .....