Oh, you might have to go back and replay it. Usually if you cant let gaster take your groceries it means you didn't pic a right choice. I'll also be so fr I looked up a walkthrough for sans route. Its commented somewhere here as well!
OH MY GOD THANK YOUUUUU I KEEP DYING I JUST WANTS SANS BRO ToT