Hard to know without seeing any code, but try adding a breakpoint (F9) on the create codeblock then run with F6 to run in debug mode. When the codeblock runs it will pause the game and you can press F11 to step through the code from then on and see what happens. Might help find the problem.