Currently working on fixing the code thanks to @clfisher I was coding this part of my Undertale Maker project and found out that when you interact with those red rectangles using Z, it should only squeak once, but it's bugged and will now constantly squeak when holding the button. If someone can explain why this is happening I'd appreciate it.
CREDITS: Most code by @Squerx12 Toby “I’mnotgoingtosayit” Fox for Undertale @YetAnotherDeveloper for depth sorting Text engine by @PainInCode