Gaster 101:
1. Create The Core to supply energy to the Underground
2. ???
3. Accidentally create Deltarune
4. Summon God
5. Get God to play Deltarune
6. Watch
7. Fall into his machine
this was probably gaster for 88% of his work instead of actually trying to free the underground