theres an error when i try to run it in gamemaker
edit: I just had to update the code to current gamemaker, now it runs