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


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
