oki so if you google this you can find out some weird sh!t:
Why does X Gaster have no legs?
When X Gaster refused to give the X-Event the location of his other half of the Overwrite button, he loses his legs, and once Cross comes up, he proceeds to throw X Gaster out towards a forest.