I found the bug, and fixed it. Turns out, I accidentally uploaded an old build of the game, with bugs in it.