I picture it going down like this:

Sans and Gaster were at the Core and Gaster was about to fall in, but Sans pushed him out of the way, causing Sans to fall into the 'Void'. Now Gaster lives with a heck of a lot of guilt and tries to cope with it with dad jokes and puns.



Imma nwerd.