I started by watching tutorial of demage system. I copied everything and it was so broken. how can I actually learn UE5 and have the ability to understand its functions
Watch tutorials, like you just did. However watch not to replicate what is in there, but to understand what that code does and why. Use chat gpt (or other LLM) and talk about what is going on in tutorial, how to improve or change code. Chat gpt is really bad for creating code, however code that is already out there, it can summarize, help understanding, explain etc. So use tools that are available. And never stay in comfort zone, ie when you have two things to do never pick one you know how to di, pick one that you are unsure about.
Hey there @M7mdKotb! Welcome to the community! As Nawrot mentioned, the best way to learn anything is to build it! Watching tutorials and putting them together yourself can help get the first grasp, but making what you want to make it important in learning. Here’s a good place to start: