Hi,
I made a gui for changing clothes/accessories. I also made a dummy that spins around to show selected clothing/accessories. It works great with clothing, but not so much with accessories. I get the accessories from roblox catalog and put them on another dummy to get the right position for it when put on dummy in the gui. The problem is the rotation of the accessory, what I do is stop the dummy from rotating, clone the accessory, change accessory’s handle rotation to dummy’s primary part rotation (root part), parent it to the dummy and then resume dummy rotation. For some reason the rotation is incorrect and while spamming the button the accessory slightly moves for some reason.
while rotating == true do -- rotation loop
wait() -- wait for process to finish
-- set rotation CFrame (rotate by 1) --
local newCFrame = model.PrimaryPart.CFrame * CFrame.Angles(0, rad(rotateAmount), 0)
model:SetPrimaryPartCFrame(newCFrame)
end
Make sure the dummy has the needed attachments. You can just playtest the game and find the attachments (in the baseparts of your character), copy them and add them to the dummy. You can then use Humanoid:AddAccessory()
I checked and it does have those attachments like FaceCentreAttachment in the face and other ones in other body parts. And I did switch it for humanoid:AddAccessory() but still the rotation isn’t correct. Whenever I press the button that puts the accessory onto the dummy the accessory faces the direction of the camera instead of the direction where the dummy is facing.