-- Make the AnimBase

	L_15_ = Instance.new("Part", L_3_)
	L_15_.FormFactor = "Custom"
	L_15_.CanCollide = false
	L_15_.Transparency = 1
	L_15_.Anchored = false
	L_15_.Name = "AnimBase"
	
	L_16_ = Instance.new("Motor6D")
	L_16_.Part0 = L_15_
	L_16_.Part1 = L_40_
	L_16_.Parent = L_15_
	L_16_.Name = "AnimBaseW"
	--AnimBaseW.C1 = gunSettings.StartPose	
	
	L_12_ = Instance.new("Motor6D")
	L_12_.Part0 = L_3_['Right Arm']
	L_12_.Part1 = L_1_:FindFirstChild('Grip')
	L_12_.Parent = L_3_['Right Arm']
	L_12_.C1 = L_11_.GunPos
	L_12_.Name = "Grip"
	
	for L_42_forvar1, L_43_forvar2 in pairs(L_1_:GetChildren()) do
		if L_43_forvar2:IsA("Part") or L_43_forvar2:IsA("MeshPart") or L_43_forvar2:IsA("UnionOperation") then
			L_43_forvar2.Anchored = true
			if L_43_forvar2.Name ~= "Grip" then
				Weld(L_43_forvar2, L_1_:WaitForChild("Grip"))
			end
		end
	end
	
	for L_44_forvar1, L_45_forvar2 in pairs(L_1_:GetChildren()) do
		if L_45_forvar2:IsA("Part") or L_45_forvar2:IsA("MeshPart") or L_45_forvar2:IsA("UnionOperation") then
			L_45_forvar2.Anchored = false
		end
	end
	
	L_17_ = L_3_['Right Arm']
	L_18_ = L_3_['Left Arm']
	L_21_ = L_3_.Torso:WaitForChild("Right Shoulder")
	L_22_ = L_3_.Torso:WaitForChild("Left Shoulder")
	
	L_19_ = Instance.new("Motor6D")
	L_19_.Name = "RAW"
	L_19_.Part0 = L_15_
	L_19_.Part1 = L_17_
	L_19_.Parent = L_15_
	L_19_.C1 = L_11_.RightArmPos
	L_3_.Torso:WaitForChild("Right Shoulder").Part1 = nil
		
	L_20_ = Instance.new("Motor6D")
	L_20_.Name = "LAW"
	L_20_.Part0 = L_15_
	L_20_.Part1 = L_18_
	L_20_.Parent = L_15_
	L_20_.C1 = L_11_.LeftArmPos
	L_3_.Torso:WaitForChild("Left Shoulder").Part1 = nil
	
	if L_27_ then
		L_27_:Destroy()
	end
	
	L_28_:FireClient(L_2_, true, L_12_, L_15_, L_16_, L_19_, L_20_, L_14_)
end)

L_1_.Unequipped:connect(function()
	local L_46_ = L_3_:FindFirstChild('Torso')
	local L_47_ = L_3_:FindFirstChild('Head')
	L_27_ = L_3_:FindFirstChild('HolsterModel') or Instance.new('Model', L_3_)
	L_27_.Name = "HolsterModel"
	
	for L_48_forvar1, L_49_forvar2 in pairs(L_1_:GetChildren()) do
		for L_50_forvar1, L_51_forvar2 in pairs(L_49_forvar2:GetChildren()) do
			if L_51_forvar2.ClassName == "Motor6D" then
				L_51_forvar2:Destroy()
			end
		end
	end
	
	for L_52_forvar1, L_53_forvar2 in pairs(L_1_:GetChildren()) do
		if L_53_forvar2:IsA("Part") or L_53_forvar2:IsA("MeshPart") or L_53_forvar2:IsA("UnionOperation") then
			L_53_forvar2.Anchored = true
		end
	end
	
	L_46_:WaitForChild("Neck").Part1 = L_47_
	L_46_:WaitForChild("Neck").C1 = L_46_:WaitForChild("Neck").C1
	L_46_:WaitForChild("Neck").C0 = L_46_:WaitForChild("Neck").C0
	
	L_15_:Destroy()
	L_14_:Destroy()
	L_21_.Part1 = L_17_
	L_22_.Part1 = L_18_
	
	L_28_:FireClient(L_2_, false)
	
	if L_11_.HolsteringEnabled then
		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
				local L_57_ = L_56_forvar2:clone()
				L_57_.Parent = L_27_
			end
		end;
		
		for L_58_forvar1, L_59_forvar2 in pairs(L_27_:GetChildren()) do
			Weld(L_59_forvar2, L_27_:WaitForChild("Grip"))
		end
		
		local L_54_ = Weld(L_27_:WaitForChild("Grip"), L_3_:WaitForChild('Torso'))
		L_54_.Name = "TWeld"
		L_54_.C1 = L_11_.HolsterPos
		
		for L_60_forvar1, L_61_forvar2 in pairs(L_27_:GetChildren()) do
			L_61_forvar2.Anchored = false
		end
	end
end)

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