If you don't want to post your code publicly, you can send me your code privately here: game.professor@yandex.com
Also, please mention what engine and version you are using.
If we find an answer, I'll post a general answer to what was happening in case anyone else is having a similar issue.