Issue placing blocks

In my past post about something like this I got it working kind of, but now it places like this?

That is when I tried to place on the side of the baseplate, it seemed to have placed twice?

They seem to be switching blocks or something… and whenever I place on top of the baseplate either this happens:
image

Or nothing places at the top except this:

Code:


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 = 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)

Are all the parts in the block welded?

Yup. image