Welcome to the Candy Crush Saga Community
Do you have a question or need help with your game? Ask the Community.
Hello @smariin and welcome to the community! I am afraid if you reach level 240 with no gold and no boosters then all you can do is wait. This is one for the first levels in the game designed to hold players up to spend all the gold and boosters they were given earlier in the game, so that they will start paying to play. If you have already spent everything then one action I could recommend is to delete the app, reload the app and start again: Don't spend any gold at all before level 205 and you will hardly need to play any boosters either until level 205. Then when you reach levels 205 and above, where some levels ending in the digit 5 are rigged to make you fail, then you can pay 10 gold bars to get past them. The game will increase the extra moves you get for spending 10 gold, so it is easy to skip those levels if you have gold.
If you don't want to start again then all is not lost. Hopefully you get Season Pass by now: Use old levels (level 10 is good as it counts as "hard" but isn't) you know you can easily pass, to climb to the top tier, where you will get a free UFO. Just replay your favourite level until you have reached the top and then claim all the boosters.
Eventually the game will let you pass level 240 by dropping you the candies you need to make special candies and combos of those. Wait for a lucky board and if need be use one single booster you gained from Season Pass when you can see you are close enough, with a few moves left.
My advice for all legendary levels is this:
Once you get to level 261 make sure you win every episode race. To win the race play one episode per day and you will definitely win the gold prize.
Good luck!