-- This function actually creates the weld.

function CreateWeld(x, y)
	local weld = Instance.new("Weld") 
	weld.Part0 = x
	weld.Part1 = y
	weld.C0 = x.CFrame:inverse() * x.CFrame  
	weld.C1 = y.CFrame:inverse() * x.CFrame  
	weld.Parent = x
	return weld
end
