When I host it locally or on my website it works fine but when I upload the files to itch.io it doesn't seem to be working properly. I think this might be a bug with itch.io unless there is something special I have to do in order to upload games made with the godot engine.