You've killed them all. Papyrus first, then Sans, then somehow Gaster. then you tried to fight him. But he came prepared. You should've killed him before Gaster, when he least expected it. But you didn't. Look where you are now.
At the end don't stop the game. Wait until the music ends