Accessories not Correctly Fitting in Viewport Frame

I’m currently working on a system that allows you to equip accessories via a UI menu and then display the character in a viewport frame. Although when attempting to equip the rig with a hat, it does not fit until another accessory is equipped.

I’ve seen other topics explain that the rig needs to be parented to the workspace then parented back to the frame, which works, but only once another accessory is equipped. As seen below,

Here is the client code for handling equipping:

uiItem.Equip.MouseButton1Click:Connect(function()
	local accessory = game.ReplicatedStorage.Events.LoadItem:InvokeServer(item.id)
	rig.Parent = workspace
	--accessory.Parent = workspace
		
	accessory.Parent = rig

	wait(1)

	rig.Parent = ui.Frame.Avatar.ViewportFrame.WorldModel
end)

Never mind, found this neat piece of code that solves the issue. Apparently welds don’t happen on the client but only the server.

2 Likes

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