for this route you have to not kill anything and make friends with every monster. This will end with Toriel saving you from asgore and then all your friens being captured by flowey and him absorbing their souls and becoming Asriel the god of hyperdeath. For this fight you have to keep saving your friends and him so that you can all leave the underground and get a happy ending.