I'm getting a similar problem to this. Whenever my character banks for more food , it just keeps opening the bank and closing it again without taking any food out , this process is repeated so the script becomes void after I run out of an inventory of food.