good, and very old question.
my advice - read David Hume's essay on Necessity and Responsibility in the Essay Concerning Human Understanding.
there are ways not to get in a muddle over this:
- "free will" is often just a grand word for "self-control", which is a much less puzzling notion --- just a machine with own-state feedback
- "free will" should not have anything to do with other socially determined goods like meaning, responsibility and purpose; it is not needed to give satisfactory accounts of these.
So, yes, free will is a myth; usually it is about self-control; sometimes it is about punishment and responsibility. But it is never needed for anything.