Had my air conditioner in the window for a few months and now the water is spraying out at the front on the bottom help

This usually caused by high humidity and a build up in the condensation pan under the unit. Or the drain pan has a clog it's drain In addition, if the outside part of the unit is not sloped (tilted) down 1/2", to allow the water to run to the back of the pan it builds up under the front of the unit.