I am making a button that saves the clothing and accessories that a user has on, and puts it onto a Dummy in a ViewportFrame. Adding clothing works, and accessories are parented to the Dummy so the button works fine, the only problem is the accessories not showing on the Dummy.
I’ve tried to manually set the Part1 property of AccessoryWeld as this is a solution I’ve seen, but the Part1 property is already assigned correctly. (All properties are identical to the accessory on my character)
slot.SaveButton.MouseButton1Down:connect(function()
local outfit = string.split(activeFit.Value,",")
local check = getOutfit(player.Character:GetDescendants())
slot:SetAttribute("FitString",activeFit.Value)
deleteSave(slot.ViewportFrame.Dummy)
for _,piece in check do
if piece:IsA("Accessory") then
local newPiece = piece:Clone()
newPiece.Handle.AccessoryWeld.Part1 = slot.ViewportFrame.Dummy.Head
slot.ViewportFrame.Dummy.Humanoid:AddAccessory(newPiece)
elseif piece:IsA("Shirt") or piece:IsA("Pants") then
piece:Clone().Parent = slot.ViewportFrame.Dummy
end
end
end)
video of problem:
https://gyazo.com/5a9b700a94c39116b236832652f9630a
explorer: