How to make models with humanoids not affect mass

I want to weld this model onto the character, and it has a Humanoid in it. When the humanoid is it the characters mass gets affected like this:

External Media

(in this second clip the models DO have a humanoid in them)

I want it to not affect the mass at all. I want it to look like this

External Media

(in this second clip the models DONT have a humanoid in them)

image

You can do this by checking the “Massless” property which is found in parts.
image
This should remove mass from the part.

You can check if a model has a humanoid then enable “Massless” on all parts by doing the following:

local model = workspace.Shadow
local foundhumanoid = false
for _, v in pairs(model:GetDescendants()) do
     if v.ClassName == "Humanoid" then
        foundhumanoid = true
     end
end
if foundhumanoid == true then
    for _, v in pairs(model:GetDescendants()) do
        if v.ClassName == "Part" then
            v.Massless = true
        end
    end
end

Note there are better ways to do this, but this is just an example. The script will search the model for humanoids. If it finds a humanoid, it will set all of the parts that have the model as an ancestor to Massless.

Thats what I’ve tried but it doesnt seem to fix it so I made this devfourm post to see if its even fixable

This seems more like a roblox-related issue you may have to get around. Is having a humanoid an absolute must? Maybe you could remove the humanoid while they are attached to the player? I understand this may not be feasible if you are wanting to animate the characters.

I wanted to copy the characters accessories and clothes onto the model so I would need a humanoid but if it acts like this I could get by with just a shadow

Edit: I just found out that if you turn on platformstand in the humanoid of the shadow it fixes all of the mass issues

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.