-- Make the AnimBase
	L_18_ = Instance.new("Part", L_3_)
	L_18_.FormFactor = "Custom"
	L_18_.CanCollide = false
	L_18_.Transparency = 1
	L_18_.Anchored = false
	L_18_.Name = "AnimBase"
	
	L_19_ = Instance.new("Motor6D")
	L_19_.Part0 = L_18_
	L_19_.Part1 = L_58_
	L_19_.Parent = L_18_
	L_19_.Name = "AnimBaseW"
	--AnimBaseW.C1 = gunSettings.StartPose	
	
	L_15_ = Instance.new("Motor6D")
	L_15_.Part0 = L_3_['Right Arm']
	L_15_.Part1 = L_1_:FindFirstChild('Grip')
	L_15_.Parent = L_3_['Right Arm']
	L_15_.C1 = L_12_.GunPos
	L_15_.Name = "Grip"
	
	for L_60_forvar1, L_61_forvar2 in pairs(L_1_:GetChildren()) do
		if L_61_forvar2:IsA("Part") or L_61_forvar2:IsA("MeshPart") or L_61_forvar2:IsA("UnionOperation") then
			L_61_forvar2.Anchored = true
			
			if L_61_forvar2.Name ~= "Grip" and L_61_forvar2.Name ~= "Bolt" and L_61_forvar2.Name ~= 'Lid' then
				Weld(L_61_forvar2, L_1_:WaitForChild("Grip"))
			end
			
			if L_61_forvar2.Name == "Bolt" then
				if L_1_:FindFirstChild('BoltHinge') then
					Weld(L_61_forvar2, L_1_:WaitForChild("BoltHinge"))
				else
					Weld(L_61_forvar2, L_1_:WaitForChild("Grip"))
				end
			end;
			
			if L_61_forvar2.Name == "Lid" then
				if L_1_:FindFirstChild('LidHinge') then
					Weld(L_61_forvar2, L_1_:WaitForChild("LidHinge"))
				else
					Weld(L_61_forvar2, L_1_:WaitForChild("Grip"))
				end
			end
		end
	end
	
	for L_62_forvar1, L_63_forvar2 in pairs(L_13_:GetChildren()) do
		if L_63_forvar2:IsA('Part') then
			Weld(L_63_forvar2, L_1_:WaitForChild("Grip"))
		end
	end
	
	for L_64_forvar1, L_65_forvar2 in pairs(L_13_:GetChildren()) do
		if L_65_forvar2:IsA('Part') then
			L_65_forvar2.Anchored = false
		end
	end
	
	for L_66_forvar1, L_67_forvar2 in pairs(L_1_:GetChildren()) do
		if L_67_forvar2:IsA("Part") or L_67_forvar2:IsA("MeshPart") or L_67_forvar2:IsA("UnionOperation") then
			L_67_forvar2.Anchored = false
		end
	end
	
	L_20_ = L_3_['Right Arm']
	L_21_ = L_3_['Left Arm']
	L_24_ = L_3_.Torso:WaitForChild("Right Shoulder")
	L_25_ = L_3_.Torso:WaitForChild("Left Shoulder")
	
	L_22_ = Instance.new("Motor6D")
	L_22_.Name = "RAW"
	L_22_.Part0 = L_18_
	L_22_.Part1 = L_20_
	L_22_.Parent = L_18_
	L_22_.C1 = L_12_.RightArmPos
	L_3_.Torso:WaitForChild("Right Shoulder").Part1 = nil
		
	L_23_ = Instance.new("Motor6D")
	L_23_.Name = "LAW"
	L_23_.Part0 = L_18_
	L_23_.Part1 = L_21_
	L_23_.Parent = L_18_
	L_23_.C1 = L_12_.LeftArmPos
	L_3_.Torso:WaitForChild("Left Shoulder").Part1 = nil
	
	L_14_ = L_8_:WaitForChild('MainGui'):clone()
	L_14_.Parent = L_2_.PlayerGui
	
	L_27_ = L_58_:FindFirstChild('AHH') or L_6_:WaitForChild('AHH'):clone()
	L_27_.Parent = L_3_.Head
	
	if L_32_ then
		L_32_:Destroy()
	end
	
	L_33_:FireClient(L_2_, true, L_15_, L_18_, L_19_, L_22_, L_23_, L_17_)
end)

L_1_.Unequipped:connect(function()
	local L_68_ = L_3_:FindFirstChild('Torso')
	local L_69_ = L_3_:FindFirstChild('Head')
	L_32_ = Instance.new('Model', L_3_)
	L_32_.Name = "HolsterModel"
	
	for L_70_forvar1, L_71_forvar2 in pairs(L_1_:GetChildren()) do
		for L_72_forvar1, L_73_forvar2 in pairs(L_71_forvar2:GetChildren()) do
			if L_73_forvar2.ClassName == "Motor6D" then
				L_73_forvar2:Destroy()
			end
		end
	end
	
	for L_74_forvar1, L_75_forvar2 in pairs(L_1_:GetChildren()) do
		if L_75_forvar2:IsA("Part") or L_75_forvar2:IsA("MeshPart") or L_75_forvar2:IsA("UnionOperation") then
			L_75_forvar2.Anchored = true
		end
	end
	
	if L_3_.Humanoid and L_3_.Humanoid.Health > 0 then
		L_3_.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
		L_68_['Right Hip'].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
		L_68_['Left Hip'].C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
		L_17_.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
		
		L_3_.HumanoidRootPart.RootJoint.C1 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
		L_68_['Right Hip'].C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
		L_68_['Left Hip'].C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
		L_17_.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
	end
	
	L_68_:WaitForChild("Neck").Part1 = L_69_
	L_68_:WaitForChild("Neck").C1 = L_68_:WaitForChild("Neck").C1
	L_68_:WaitForChild("Neck").C0 = L_68_:WaitForChild("Neck").C0
	
	L_18_:Destroy()
	L_17_:Destroy()
	L_24_.Part1 = L_20_
	L_25_.Part1 = L_21_
	
	if L_69_:FindFirstChild('AHH') then
		L_69_.AHH:Destroy()
	end
	
	L_33_:FireClient(L_2_, false)
	
	if L_12_.HolsteringEnabled then
		for L_77_forvar1, L_78_forvar2 in pairs(L_1_:GetChildren()) do
			if L_78_forvar2:IsA("Part") or L_78_forvar2:IsA("MeshPart") or L_78_forvar2:IsA("UnionOperation") then
				L_78_forvar2.Anchored = true
				local L_79_ = L_78_forvar2:clone()
				L_79_.Parent = L_32_
			end
		end;
		
		for L_80_forvar1, L_81_forvar2 in pairs(L_32_:GetChildren()) do
			Weld(L_81_forvar2, L_32_:WaitForChild("Grip"))
		end
		
		local L_76_ = Weld(L_32_:WaitForChild("Grip"), L_3_:WaitForChild('Torso'))
		L_76_.Name = "TWeld"
		L_76_.C1 = L_12_.HolsterPos
		
		for L_82_forvar1, L_83_forvar2 in pairs(L_32_:GetChildren()) do
			L_83_forvar2.Anchored = false
		end
	end
end)

L_3_.Humanoid.Died:connect(function()	
	L_33_:FireClient(L_2_, false)
end)