Issues with HumanoidDescription

Yea the ROBLOX animation packs from the catalog don’t work either.

Also, just for extra clarification, I’m trying to find a way to change the default walking and running animations mid-game, therefore I’d like to avoid overlapping animations just to update a basic default animation.

If you have any other alternatives, please let me know.

@colbert2677 cont.

Please let me know if I have the right idea: The model needs to be uploaded and the ID that correlates to the model is used rather than the animation ID.

My first question is how would I differentiate between an idle animation from a walking animation if both animation id’s are in the same model?

This is correct, yes. I did make a bit of a mistake while explaining how to upload the animations though, so I’ll take the time to re-explain here and correct my mistake on another thread of the same nature. The setup is a little confusing and undocumented, had to fumble around with it a bit.

There is a process you must follow for every animation override you want to apply to the Humanoid using HumanoidDescriptions. For example, let’s say I want to change the walk and run animations. I do the usual creating of two animations and publish them, that’s straight forward. Then, those ids are fitted into Animation objects and put into “containers” of sorts. These follow the same layout as the ones you can find in the Animate script. These are then put into an R15Anim folder and uploaded to the site.

image

So for each type of animation I’m replacing (walk and run), there’s an R15Anim folder. In them is a container and in the container are my animations. They should match up the same way the Animate script does it, as I explained before. The folders must explicitly be named R15Anim.

When you have this down, you upload each of the folders separately. With the id you get from publishing the folders to the website, you use these as the ids for the HumanoidDescription’s animation fields. The HumanoidDescription will take care of the rest in terms of replacing the animations.

In case you need help seeing exactly what I did, I’ll attach my working space below. It contains the R15Anim folders you need to upload to change walking and running animations. All you need to do is add the ids to the Animation objects, upload, copy the ids and then use them for your HumanoidDescriptions.

R15Anim Folders.rbxl (21.6 KB)

Might make a bit of a tutorial to expand on use of HumanoidDescriptions and correct some wrong knowledge I’ve provided to other developers.

15 Likes

Oh my god, thank you so much. It worked perfectly.

In case I want to do the same thing with R6 animations, would I just change the “R15Anim” name to “R6Anim” while following the same process?

Also, how expensive is this? Can I turn this into a function and call it whenever a player equips a tool?

Unfortunately this method will not work with R6 animations as far as I’m aware since there are no custom animations for R6. HumanoidDescriptions expect to take apart a folder named R15Anim. In the case of R6 animation changes, you would probably have to modify the Animate script directly.

This is very inexpensive to run. The engine handles the animation changes for you quickly and in the background. Feel free to do it as much as your game needs them.

Great, thank you so much once again. I really appreciated your help.

One last question, are there any other better alternatives to changing the default animations mid-game or is this the most effective method?

Any method that fits your game’s systems is decent enough to work. For something like changing animations I would just make my own edits to the Animate script so it can accommodate my use cases, since I don’t normally use HumanoidDescriptions to change slight parts of characters (I’m either modifying an existing appearance or completely changing it).

1 Like

Hey,

I have been trying to apply this fix but it just doesn’t seem to work.
The only difference in my game is that I am trying to apply it to NPCs that are client sided.

I have done the exact same thing, uploading a folder named R15Anim with the structure just like in the Animate script. I even made the models themselves public on the Roblox website and it still doesn’t work.

I just get the same warning over and over again without the first error that Premedius got.

So I get this:
image
Without this:

Asset id 5671454392 should reference a Folder Instance named R15Anim - Studio

Is there any possible way I could fix it? If you know the answer please let me know, I’d be very appreciative.

I have actually tried to do it in studio, server sided.

The issue still persists the same exact way as before.

My Command, that was run on my own character from the Server view in studio:
image
The Warning:
image
The Animation ID inside of the HumanoidDescription object, that creates the warning:
image

The animation you’re trying to use is uploaded by a group game while the R15Anim folder is uploaded to your profile. Remember that animations can only be used by the same entity (profile or game) they’re uploaded by. Your R15Anim model should also be uploaded under your group and the place you’re using this script in should also be a game in that group.

Make sure to check other assets of your HumanoidDescription as well, since animations are not the only assets that will trigger this warning. I’m assuming best case that the rest of your assets are valid and it’s just the animation giving you this warning.

Hey,

This was just a test for my personal usage. In-game the animations and the R15Anim models are uploaded to the group and the same error occurs.

Is it specifically the animation that causes the problem or do you have other assets hooked up to your HumanoidDescription? Better yet, are you able to supply repro steps? I feel like there’s another underlying issue that isn’t the animation.

I have no idea what causes this issue. All I know is that when I try to apply a description, if the HumanoidDescription object contains one of the custom model IDs, the warning appears.

I will very quickly send you a file of the warning I get. I have some custom things running so I have to make them standalone

This is a super late post, but I’m currently employing the use of this method that @colbert2677 has shared.

I was wondering if instead of painstakingly uploading a folder model to the site and having HumanoidDescription reference and request the model from the site (which will inherently cause some yielding issues, unless this is a cached request), if I could perhaps store the folders in-game and just put in the folder as the animation value (as opposed to the model id) in the HumanoidDescription instead?

Thanks in advance! :slight_smile:

HumanoidDescriptions only accept numbers in the animation fields. The way HumanoidDescriptions load their assets onto the character is baked into the instance itself and it doesn’t include loading instances that are already in the DataModel.

1 Like

My only concern is that I’m changing the idle animation whenever they change the direction they are facing. Surely there will be issues at some point as it has to make that web request for the animation folder model every time the character turns around?

I can find an alternate method easily but I do like the HumanoidDescription system thus far for what I am doing.

I would not recommend using HumanoidDescriptions if you’re doing directional movement animations - in that case you should be taking over the movement animations yourself. They aren’t really built for highly dynamic use cases like this.

1 Like

I’ll look into just forking the default animation script and editing that I guess, thanks a lot. :slight_smile: