Why is this happening with weld constraint?

image
image
It shoud look like this:
image
image

Handle:

image

Code:

local function weld(object)
	for i,v in ipairs(object:GetChildren()) do
		local weld = Instance.new('WeldConstraint',v)
		weld.Name = v.Name
		weld.Part0 = object.Handle
		weld.Part1 = v
	end
end

No idea what’s causing it.

All the parts move to the middle :confused:

3 Likes

Have u tried calling the function?

1 Like

First of all I don’t think u need to make an instance in a script when u could just insert it… And secondly like I said try calling the function

1 Like