How Would I move a spring on only the Y axis?

I’m trying to make a suspension system for a snowmobile and the suspension doesn’t actually stand upright which causes the Snowmobile to fall and undrivable is there any way I can make the spring only adjust on the Y axis?