What is the best way to attach armor to NPC's?

Lately I’ve been having some difficulty when it comes to attaching armor pieces to NPC’s, I already have a good understanding for attaching armor pieces and accessories to players which just utilize some basic attachments but NPC’s are a whole different matter.

Some things I’ve tried:

  1. WeldConstraints
    I’ve done a lot of messing around with WeldConstraints but for some reason they just seem highly unreliable, every time I move the NPC around, every single WeldConstraint just gets destroyed ultimately wasting around 15-20 minutes of my time. If there is a way to prevent this, please let me know

  2. Attachments
    As I already mentioned before, I’ve used these in order to add armor pieces to players, however I can’t get them to work on NPC’s. Please let me know if this is intended behaviour or just a case of incorrect application.

I also hope that any recommended solutions can also be applied to other accessories and not just limited to armor (i.e hair, masks, etc)

1 Like

I’m guessing that it can be the WeldConstraints, what I will do is that I will select all the parts of the NPC with the inserted armor to it together to another new position

Please re-read my post again, unless i’m misunderstanding what you’re trying to say, I’ve already mentioned that WeldConstraints aren’t a reliable option for me as the WeldConstraint breaks every time I move the NPC. However if there is a fix for this, I’d appreciate if you could help me out.

Maybe try grouping it will work it out?

Grouping doesn’t solve the problem of attaching the armor in place relative to the NPC, in run time, the armor pieces will just fall off.

Do you have any photos or videos to demonstrate exactly what your problem is. I might try to solve it

Sure give me a second, I’ll open up Gyazo.

1 Like

https://gyazo.com/c9fca973b21aec9e88268bc82ad44367

As expected, when in run time the armor pieces fall off the NPC since there aren’t any welds holding the armor together with the main body, however after I switch back to studio, the armor pieces are attached to the NPC.

Hmm I guess it can be because of two things:

  1. Anchor: Maybe anchoring them to their positions
  2. Folder: Idk how, but maybe putting it all in a folder

…I appreciate the help, but I don’t think you understand what I’m looking for. Of course anchoring the armor would solve my problem as in keeping the armor pieces from not falling, but these NPC’s are eventually going to be scripted and move around, anchoring the armor pieces is only going to hold them in place relative to the actual game world and not the NPC itself.

Folders have nothing to do with keeping the armor pieces secure to the NPC, I’m not even sure where this idea came from.

Keep armor anchored.
Make it uncollide-able.
Weld the armor together.
Unanchor the armor.
Weld the armor to the Character.

3 Likes

Just to clarify, are you referring to WeldConstraints or Welds?
If you’re talking about WeldConstraints, would this method prevent them from breaking after moving the NPC around?

I am referring to WeldConstraints.

Alright great, I’ll give it a try and let you know how it went.

1 Like

Looks like everything works perfectly, although I’ve had problems in the past where the WeldConstraints will get destroyed after a while, hopefully this isn’t the case here.

Thanks again

2 Likes