How do I place a whole group a blocks?

Hello, so I am trying to make a place able chair, which already works, but my issue is that I want to make it look like lego and the little pegs at the top will not follow the position no matter what I do I can give you my code but I just removed the system to move the pegs because it did not work. How do I go about doing this?

Place all of the chair Parts inside the Model. That way when the player grabs the chair the Parts move with the model.
Are the Parts Anchored? Are they attached with WeldConstraints to the rest of the chair?

If that doesn’t work then you need to look at your placement script.

This is being placed by tool I will try those suggestions.

Easier way and without constraints is to anchor all the parts in the model then set the primarypart cframe.

I have tried that it did not work…

Have you set the model’s primary part?

Uh no, I hardly remembered that was a thing thanks let me try that

If it is unanchored, use WeldConstraint.

In addition, if you’re using code to move models, set a primary part and use the function model:SetPrimaryPartCFrame(), which will move the whole model.

Let me try that I tried setting the primary part but not the primary part cframe

Doesn’t seem to work properly… it is spawning part under map and the top part above in one spot and it won’t move no matter where I click.

Code:

-- Variables

local RS = game:GetService('ReplicatedStorage')
local Event = RS:WaitForChild('PlaceBlock')

-- PlaceBlock Event

Event.OnServerEvent:Connect(function(plr,target,pos,Block)
	local xBlock = Block:Clone()
	--local model = xBlock
	local model = game.ReplicatedStorage.ChairTrap
	xBlock.Trap.Position = target.Position + pos
	xBlock.Parent = game.Workspace
	model.PrimaryPart = model.Trap
	model:SetPrimaryPartCFrame(xBlock.Trap.CFrame)
	print(target)
end)

What is xBlock? And, what is model?

model is the model that the chair and the top pieces are stored in, xblock is the object to place, which is the model

Could you clarify what this means?

Well, at the bottom of a local script in my tool I have this,

Code:
script.Parent.Activated:Connect(function() local target = mouse.Target if target then local surface = mouse.TargetSurface local pos = Surface(surface) Event:FireServer(target,pos,Chair) end end)

The chair variable is local Chair = game.ReplicatedStorage.ChairTrap
Which is to the model
image

The union is the pegs

Can you format this with three ` symbols? ^-^

It wouldn’t work lemme try again

How about that? Does that work?

You could make a union for the pegs to connect to the chair.

The pegs are unions, shown here.

Ok, then I’d recommend what @Scottifly said, since that would help a ton.