Giving Animate/Health scripts to Custom Character

Hello there!

I’ve been trying to create custom characters that are only applied to a specific person depending on their UserId.

To do this, I have used this method:

However, what wasn’t specified is how to apply a custom character’s animations/health script onto the character. I’ve tried just adding it inside the model. However, that failed to work.

If anyone could provide insight on adding animation/health scripts while using this method of custom character loading, that would be great. Thank you so much in advance!

If its a normal character, you can do it by the Humanoid. It looks like even tho is a custom character, it will have a Humanoid, So doing it like this should work.

Could you please elaborate on what you mean by “do it by the humanoid?”

Thank you for your response!

The Humanoid is something inside of all character. I think it may be one inside of your custom character.

go check inside of your character, it will look like this:
image

Yes, the Humanoid is already inside the character, but it still won’t animate.

are you doing :LoadAnimation() ?

Yes I am.

My apologies, I just realized I made the idiotic mistake of keeping the Animate script as a localscript instead of a serverscript. That was the error.

I’m so sorry if I took up your time!

That’s ok, Have a good day!! If you need anymore help, message me via Roblox messages

1 Like