[C++] Script cant acess playerClass?

It should. Did you remove the init from the constructor?