Game keeps crashing when calling function within function

Currently my game keeps crashing because I call a function within a function inside the module.
Printing out the instance instead of calling the function prints it out as normal.

So this works

This doesn’t work and the game does not load on running