The way I learned scripting on Roblox is that I had a goal. A big one. I wanted to code an entire game, knowing next to nothing of the API.
My game needed animations. So I took time to learn how to do that - how to make my own animations using the animation editor. How to play them in game. How to make a custom animation controller using CFrames (because I am such a noob I didn’t know animations don’t replicate in studio team create); that led me to first having to learn about CFrames. During just this portion of development I learned a lot of things that I wouldn’t have known to search up or “forcecully” learn. They just came up as skills I needed immediately.
I learned a lot more than that just looking into animations. As I dove deeper, I needed UI - how to use the UI in Roblox, sizing/scaling based on device, good design practices (still bad at those), etc… And there’s always those UI animations, they are annoying at first but eventually it got easier.
There’s also the backend too - data handling (datastores), processing network traffic with server-side validation, security, etc… These are all critical things you might need in making a game (for most games, anyways).
I know people say, start off in small projects. That’s fine, I do that too - I make a test place whenever I try to implement something new for my game. If I make UI, I tinker with it in a separate place. If I want to learn how attachments and physics works, I make a separate place for that and play around. The goal is still there though - the only reason I am learning those things is that they might be able to solve my problems or help me progress.
It doesn’t hurt to learn for learnings sake but I think having a direction is much more powerful than aimlessly choosing some arbitrary path. I encourage you to have a large goal, and instead of taking it on all at once, consider the smaller steps required to get there and fulfill those. You’ll find that gaps in your knowledge will slowly fade away, and you’ll be learning relevant info.
I also like to read up on what people are doing here on the forum, help out a bit, etc… it gets you in the environment and helping others is often a great way to help yourself, too. There are great people here to learn from, but I especially enjoy reading the older posts where more serious development practices are discussed (the ones you don’t often see these days).