[SOLVED] (close this) Cannot create object using a variable containing its name

What am I doing wrong?

It wont create the object when I call a variable containing the object name (GreenSlime), but, if I change that event, removing the variable call and inserting “GreenSlime”, it does create a object.

The object name field needs to be a string,

It should be

Your code currently tries to get the variable as a number. Since it’s not a number, it returns 0 and then the ToString makes it a string.