To prevent mushiness, ensure you cut the squash into evenly sized-pieces. Avoid overcrowding the baking tray; spread the pieces out in a single layer to allow proper roasting and caramelization. Also only place the squash into a preheated oven to avoid steaming.