Blueprint to C++ and Engine Freezing?

and then how to get the return index to compare if == -1