I am making a game and I need to have NPCs that are about 1/4 of the size of your character. When I make these and add in the Motor6D inside of them their body parts spread out, how would I prevent that? Here is a picture of what It looks like.
I tried to weld it but the animations wouldn't play because the limbs were stuck together.
Any other ideas? Thanks!
This really isn't a scripting question, because all you need is this nifty plugin!
When you resized the character, all of it's welds stayed the same. As you may know.. welds have a C0
property which defines an offset for the weld. Why is this relevant information? Because all the C0 properties of any welds in your character are staying the same! Which is causing your character to be spread out.
The syntax for offsetting a weld is;
weld.C0 = [Position offset] * [Rotation offset]
And is used like;
weld.C0 = CFrame.new(0,5,0) * CFrame.Angles(math.rad(90),0,0)
The above code would make the offset be 5 studs above, and 90 degrees on the X axis..
So what you need to do is keep any rotation offsets but manipulate the position offsets to your uses.
EDIT: This answer also is compatible with Motors