Issue when BodyPartDescription changes, Engine can Re-Weld Accessories to the wrong Character Aesthetic Part due to an Attachment's name

Description

What does it mean to the Roblox Engine, if a Character has a Model with a Handle that contains an Attachment named BodyBackAttachment ?

It looks like there’s something really special about this Attachment. The existance of that Attachment, causes an issue.

The Weld for the Shield on my Avatar, didn’t go to my UpperTorso instead it choose the Model with that said Handle as its new home. :thinking:

Then I delete it, which makes my Accessories fall off the character, because for some reason, the Accessories decided to Weld somewhere else, instead of the Character’s Aesthetic Parts.

 

In the Private Message there are videos which also explain this issue, along with a place file to re-produce the issue. Watch them all to the end, please, I guess.

 

 

More Videos!!

MORE VIDEOS


 

Re-production Steps

You can just run the test place file found in the Private Message and click the red button like in the video above.

  1. Open Roblox Studio.
  2. Read the Comments of the Script below and run it in Server Context
Script
-- You need the default Torso Package
-- And default Head
-- And some Accessories as Hat and for the Back.

local targetPly = game.Players:FindFirstChildOfClass("Player")

local function runTest1()
	local test = Instance.new("Model")
	Instance.new("Part", test).Name = "Handle"
	test.PrimaryPart = test.Handle
	
	Instance.new("Attachment", test.Handle).Name = "BodyBackAttachment"
	Instance.new("Attachment", test.Handle).Name = "HatAttachment"
	
	test.Handle.BodyBackAttachment.Position = Vector3.new(0,0,2)
        
	Instance.new("Weld", test) test.Weld.Part0 = test.Handle
	test.Weld.Part1 = targetPly.Character.UpperTorso
	
	test.Parent = targetPly.Character
	
	task.wait(4)
	test:Destroy()
end

task.spawn(function() runTest1() end)


task.wait()

targetPly.Character.Humanoid:ApplyDescription(
	game.Players:GetHumanoidDescriptionFromUserId(2)
)

task.wait()

targetPly.Character.Humanoid:ApplyDescription(
	game.Players:GetHumanoidDescriptionFromUserId(targetPly.UserId)
)  
  1. Observe

 

Expected Result

The Accessories Weld to the correct Character Aesthetic Part. Regardless if that Model with the said Handle and Attachment is present… It’s not a valid Character Aestehtic Part.

Actual Result

The Accessories all welded to this Model’s Handle, due to it having BodyBackAttachment. Deleting the BodyBackAttachment doesn’t cause this issue.

Which is asking us, why.

 

A private message is associated with this bug report

Hi @HealthyKarl , thanks for your report and apologies for the late response.

There are a few things going on here. The core of the issue is that when a character puts on an accessory, we look for a matching attachment point name in the character (except inside other tools/accessories), and put those two together.

For a simple repro, you can just create a basic r15 rig (Avatar → Character → Mesh Avatar [2016]), and add an extra BodyBackAttachment in the head. Then just add the shield accessory (or any accessory using that attachment), and it will show up on the head instead of the body.

This does look odd, but it only happens because a developer specifically put that attachment point inside a character model. This intentionally gives creators more flexibility, so while I agree that the naming convention is weird, this is not a bug. If there is a need for this to be changed please reply with more information or create another bug report / feature request.

Thank you!

Yeah, I think I see

Alright, so the original issue was that in a game that I did not create but I help a bit in, there was the mention of “accessories” falling off.

And now, while I am not exactly sure about the details, I have to check the repro file I made again.

Someone created a “Jetpack” and put a “Handle” with that Attachment Name, for automatic welding, so without a script at all. I guess one can just turn it into an Accessory Instance instead.