But i have a problem and that is that the animation wont play.
I have tried solving the problem but theres no errors it just don’t play. This is in a Script and it worked in a local script but then it won’t play for tthe rest of all players.
You can still load animations from the character’s “Humanoid” instance even if this approach has been deprecated, your issue likely revolves around animation ownership, you need to have uploaded the animation yourself for it to be played, if it has been uploaded by someone else (and thus belongs to another user’s account) then the animation will not play. Similarly, group uploaded animations are required for group experiences.