Squash need full sunlight to grow (about 6 hours of sunlight per day). So make sure you plant your squash in an area that receives a lot of sun. If it gets too hot however, they can drop their leaves as a way to conserve resources. In this case, you might want to put them in a place that has a bit of shade.