The easy way to unlock gaster

go on demonic mode and at frisk form do not kill her if she is gaster. instead kill your self by running into gaster and you get the skin