for J,M in pairs(Gun:GetChildren())do if M:IsA("\066\097\115\101\080\097\114\116")and M~=Handle then if M:FindFirstChild("\109\097\105\110\087\101\108\100")then M.mainWeld:Destroy()end if not M:FindFirstChild("\119\101\108\100\067\070")then local J=Instance.new("\067\070\114\097\109\101\086\097\108\117\101")J.Name="\119\101\108\100\067\070"J.Value=Handle.CFrame:toObjectSpace(M.CFrame)J.Parent=M end if string.sub(M.Name,1,3)=="\077\097\103"then if not M:FindFirstChild("\109\097\103\084\114\097\110\115")then local J=Instance.new("\078\117\109\098\101\114\086\097\108\117\101")J.Name="\109\097\103\084\114\097\110\115"J.Value=M.Transparency J.Parent=M end end M.Anchored=true M.CanCollide=false end end Handle.Anchored=false Handle.CanCollide=true
----------------------------------------------------------------------
--------------------[ GET WELD CFRAMES ]------------------------------
----------------------------------------------------------------------

for _, v in pairs(Gun:GetChildren()) do
	if v:IsA("BasePart") and v ~= Handle then
		if v:FindFirstChild("mainWeld") then
			v.mainWeld:Destroy()
		end
		if not v:FindFirstChild("weldCF") then
			local weldCF = Instance.new("CFrameValue")
			weldCF.Name = "weldCF"
			weldCF.Value = Handle.CFrame:toObjectSpace(v.CFrame)
			weldCF.Parent = v
		end
		if string.sub(v.Name, 1, 3) == "Mag" then
			if not v:FindFirstChild("magTrans") then
				local magTrans = Instance.new("NumberValue")
				magTrans.Name = "magTrans"
				magTrans.Value = v.Transparency
				magTrans.Parent = v
			end
		end
		v.Anchored = true
		v.CanCollide = false
	end
end
Handle.Anchored = false
Handle.CanCollide = true
