-- Make the AnimBase
	L_17_ = Instance.new("Part", L_3_)
	L_17_.FormFactor = "Custom"
	L_17_.CanCollide = false
	L_17_.Transparency = 1
	L_17_.Anchored = false
	L_17_.Name = "AnimBase"
	
	L_18_ = Instance.new("Motor6D")
	L_18_.Part0 = L_17_
	L_18_.Part1 = L_53_
	L_18_.Parent = L_17_
	L_18_.Name = "AnimBaseW"
	--AnimBaseW.C1 = gunSettings.StartPose	
	
	L_14_ = Instance.new("Motor6D")
	L_14_.Part0 = L_3_['Right Arm']
	L_14_.Part1 = L_1_:FindFirstChild('Grip')
	L_14_.Parent = L_3_['Right Arm']
	L_14_.C1 = L_11_.GunPos
	L_14_.Name = "Grip"
	
	for L_55_forvar1, L_56_forvar2 in pairs(L_1_:GetChildren()) do
		if L_56_forvar2:IsA("Part") or L_56_forvar2:IsA("MeshPart") or L_56_forvar2:IsA("UnionOperation") then
			L_56_forvar2.Anchored = true
			
			if L_56_forvar2.Name ~= "Grip" and L_56_forvar2.Name ~= "Bolt" and L_56_forvar2.Name ~= 'Lid' then
				Weld(L_56_forvar2, L_1_:WaitForChild("Grip"))
			end
			
			if L_56_forvar2.Name == "Bolt" then
				if L_1_:FindFirstChild('BoltHinge') then
					Weld(L_56_forvar2, L_1_:WaitForChild("BoltHinge"))
				else
					Weld(L_56_forvar2, L_1_:WaitForChild("Grip"))
				end
			end;
			
			if L_56_forvar2.Name == "Lid" then
				if L_1_:FindFirstChild('LidHinge') then
					Weld(L_56_forvar2, L_1_:WaitForChild("LidHinge"))
				else
					Weld(L_56_forvar2, L_1_:WaitForChild("Grip"))
				end
			end
		end
	end
	
	for L_57_forvar1, L_58_forvar2 in pairs(L_12_:GetChildren()) do
		if L_58_forvar2:IsA('Part') then
			Weld(L_58_forvar2, L_1_:WaitForChild("Grip"))
		end
	end
	
	for L_59_forvar1, L_60_forvar2 in pairs(L_12_:GetChildren()) do
		if L_60_forvar2:IsA('Part') then
			L_60_forvar2.Anchored = false
		end
	end
	
	for L_61_forvar1, L_62_forvar2 in pairs(L_1_:GetChildren()) do
		if L_62_forvar2:IsA("Part") or L_62_forvar2:IsA("MeshPart") or L_62_forvar2:IsA("UnionOperation") then
			L_62_forvar2.Anchored = false
		end
	end
	
	L_19_ = L_3_['Right Arm']
	L_20_ = L_3_['Left Arm']
	L_23_ = L_3_.Torso:WaitForChild("Right Shoulder")
	L_24_ = L_3_.Torso:WaitForChild("Left Shoulder")
	
	L_21_ = Instance.new("Motor6D")
	L_21_.Name = "RAW"
	L_21_.Part0 = L_17_
	L_21_.Part1 = L_19_
	L_21_.Parent = L_17_
	L_21_.C1 = L_11_.RightArmPos
	L_3_.Torso:WaitForChild("Right Shoulder").Part1 = nil
		
	L_22_ = Instance.new("Motor6D")
	L_22_.Name = "LAW"
	L_22_.Part0 = L_17_
	L_22_.Part1 = L_20_
	L_22_.Parent = L_17_
	L_22_.C1 = L_11_.LeftArmPos
	L_3_.Torso:WaitForChild("Left Shoulder").Part1 = nil
	
	L_13_ = L_7_:WaitForChild('MainGui'):clone()
	L_13_.Parent = L_2_.PlayerGui
	
	if L_29_ then
		L_29_:Destroy()
	end
	
	L_30_:FireClient(L_2_, true, L_14_, L_17_, L_18_, L_21_, L_22_, L_16_)
end)

L_1_.Unequipped:connect(function()
	local L_63_ = L_3_:FindFirstChild('Torso')
	local L_64_ = L_3_:FindFirstChild('Head')
	L_29_ = Instance.new('Model', L_3_)
	L_29_.Name = "HolsterModel"
	
	for L_65_forvar1, L_66_forvar2 in pairs(L_1_:GetChildren()) do
		for L_67_forvar1, L_68_forvar2 in pairs(L_66_forvar2:GetChildren()) do
			if L_68_forvar2.ClassName == "Motor6D" then
				L_68_forvar2:Destroy()
			end
		end
	end
	
	for L_69_forvar1, L_70_forvar2 in pairs(L_1_:GetChildren()) do
		if L_70_forvar2:IsA("Part") or L_70_forvar2:IsA("MeshPart") or L_70_forvar2:IsA("UnionOperation") then
			L_70_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_63_['Right Hip'].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
		L_63_['Left Hip'].C0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
		L_16_.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_63_['Right Hip'].C1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
		L_63_['Left Hip'].C1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
		L_16_.C1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
	end
	
	L_63_:WaitForChild("Neck").Part1 = L_64_
	L_63_:WaitForChild("Neck").C1 = L_63_:WaitForChild("Neck").C1
	L_63_:WaitForChild("Neck").C0 = L_63_:WaitForChild("Neck").C0
	
	L_17_:Destroy()
	L_16_:Destroy()
	L_23_.Part1 = L_19_
	L_24_.Part1 = L_20_
	
	L_30_:FireClient(L_2_, false)
	
	if L_11_.HolsteringEnabled then
		for L_72_forvar1, L_73_forvar2 in pairs(L_1_:GetChildren()) do
			if L_73_forvar2:IsA("Part") or L_73_forvar2:IsA("MeshPart") or L_73_forvar2:IsA("UnionOperation") then
				L_73_forvar2.Anchored = true
				local L_74_ = L_73_forvar2:clone()
				L_74_.Parent = L_29_
			end
		end;
		
		for L_75_forvar1, L_76_forvar2 in pairs(L_29_:GetChildren()) do
			Weld(L_76_forvar2, L_29_:WaitForChild("Grip"))
		end
		
		local L_71_ = Weld(L_29_:WaitForChild("Grip"), L_3_:WaitForChild('Torso'))
		L_71_.Name = "TWeld"
		L_71_.C1 = L_11_.HolsterPos
		
		for L_77_forvar1, L_78_forvar2 in pairs(L_29_:GetChildren()) do
			L_78_forvar2.Anchored = false
		end
	end
end)

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