Don't pay attention to all those local variables and functions, don't try to replicate my code, it won't work in your game! My screenshot was just to demonstrate how you can use small scripts in your events to call various methods from CrazyGames SDK.
For example, when a new level starts in your game, you should run this script:
crazysdk.gameplayStart();
Please refer to their documentation.