LocalPlayer NPC

Hey there im making a new game and i really want to know how to make a NPC have the same look as the localcharacter.

Can anyone help me out?

1 Like

I think if you have a blank character (so no hats, no shirt etc.) on the server & only load the character locally, you can achieve this.

I think it can actually be done in a few lines now through the HumanoidDescription methods. Basically, have a Local Script set up for the player that when they join & their appearance loads, take the HumanoidDescription from their Humanoid and apply it to your NPC.
It’ll only be done locally (because of filtering), but to their client it’ll look like their character

2 Likes

Thank you! image It worked by chanching the appearance of the NPC with an on enter function!

3 Likes

It’s a 1 person a server game btw.

1 Like

I thought HumanoidDescriptions don’t work with NPCs though?

1 Like

I ran some of my own testing and it looks like it’s fine with NPCs. You can still call the methods on the Humanoid (GetAppliedDescription and ApplyDescription) and it will work as long as they have their Humanoid & the parts they need to support having a Humanoid (I think it’s the Torso and the Head?)

Apparently that only works from the server though, so it’d have to be a server script in this case. Although with a one player server, that’d be fine. If it were more players it’d all need to be done manually

2 Likes

The last I interacted with HumanoidDescriptions, they weren’t available to NPCs. If they are now then all bless - I avoided using them when I learned they didn’t work with NPCs for the most part, but also I have some implementations that require custom filtering and application of clothing assets.

1 Like

They seem to be. I’ve just been testing with Play Solo, but it’s working fine there - they must’ve updated it?

1 Like

I used HumanoidDescription on an npc well over 1-2 months ago. Worked fine for me, so I don’t think it’s a recent change.

1 Like