This is a fun point and click adventure game! You say your code is a mess, but honestly don't worry about it being a mess, just focus on getting it to work and making sure you understand how it works. Did you make this dialouge system yourself, or was it an addon?
I did notice some bugs when playing. The first time I tried I got stuck in dialouge after clicking on the door with Shadow before I got all the ingredients. I restarted and tried again, but the second time I went to approach the door after getting all the ingredients and there was no dialouge. The third time I played, I got to the dialouge with shadow but I couldn't continue the dialouge after starting it
Honestly good first attempt, while I couldn't really manage to get to the end, it felt like there's a good amount of potential here