if Module.VMIdleAnimationID~=nil then local j=Instance.new("\065\110\105\109\097\116\105\111\110",Tool)j.Name="\086\077\073\100\108\101\065\110\105\109"j.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..Module.VMIdleAnimationID end if Module.VMFireAnimationID~=nil then local j=Instance.new("\065\110\105\109\097\116\105\111\110",Tool)j.Name="\086\077\070\105\114\101\065\110\105\109"j.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..Module.VMFireAnimationID end if Module.VMReloadAnimationID~=nil then local j=Instance.new("\065\110\105\109\097\116\105\111\110",Tool)j.Name="\086\077\082\101\108\111\097\100\065\110\105\109"j.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..Module.VMReloadAnimationID end if Module.VMShotgunClipinAnimationID~=nil then local j=Instance.new("\065\110\105\109\097\116\105\111\110",Tool)j.Name="\086\077\083\104\111\116\103\117\110\067\108\105\112\105\110\065\110\105\109"j.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..Module.VMShotgunClipinAnimationID end if Module.VMShotgunPumpinAnimationID~=nil then local j=Instance.new("\065\110\105\109\097\116\105\111\110",Tool)j.Name="\086\077\083\104\111\116\103\117\110\080\117\109\112\105\110\065\110\105\109"j.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..Module.VMShotgunPumpinAnimationID end if Module.VMHoldDownAnimationID~=nil then local j=Instance.new("\065\110\105\109\097\116\105\111\110",Tool)j.Name="\086\077\072\111\108\100\068\111\119\110\065\110\105\109"j.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..Module.VMHoldDownAnimationID end if Module.VMEquippedAnimationID~=nil then local j=Instance.new("\065\110\105\109\097\116\105\111\110",Tool)j.Name="\086\077\069\113\117\105\112\112\101\100\065\110\105\109"j.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..Module.VMEquippedAnimationID end if Module.SecondaryFireAnimationEnabled and Module.VMSecondaryFireAnimationID~=nil then local j=Instance.new("\065\110\105\109\097\116\105\111\110",Tool)j.Name="\086\077\083\101\099\111\110\100\097\114\121\070\105\114\101\065\110\105\109"j.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..Module.VMSecondaryFireAnimationID end if Module.VMSecondaryShotgunPump and Module.VMSecondaryShotgunPumpinAnimationID~=nil then local j=Instance.new("\065\110\105\109\097\116\105\111\110",Tool)j.Name="\086\077\083\101\099\111\110\100\097\114\121\083\104\111\116\103\117\110\080\117\109\112\105\110\065\110\105\109"j.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..Module.VMSecondaryShotgunPumpinAnimationID end if Module.TacticalReloadAnimationEnabled and Module.VMTacticalReloadAnimationID~=nil then local j=Instance.new("\065\110\105\109\097\116\105\111\110",Tool)j.Name="\086\077\084\097\099\116\105\099\097\108\082\101\108\111\097\100\065\110\105\109"j.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..Module.VMTacticalReloadAnimationID end if Module.InspectAnimationEnabled and Module.VMInspectAnimationID~=nil then local j=Instance.new("\065\110\105\109\097\116\105\111\110",Tool)j.Name="\086\077\073\110\115\112\101\099\116\065\110\105\109"j.AnimationId="\114\098\120\097\115\115\101\116\105\100\058\047\047"..Module.VMInspectAnimationID end ChangeMagAndAmmo.OnServerEvent:connect(function(j,f,a)MagValue.Value=f AmmoValue.Value=a end)Tool.Equipped:connect(function()if Module.DualEnabled and workspace.FilteringEnabled then Handle2.CanCollide=false local j=Tool.Parent:FindFirstChild("\076\101\102\116 \065\114\109")or Tool.Parent:FindFirstChild("\076\101\102\116\072\097\110\100")local f=Tool.Parent:FindFirstChild("\082\105\103\104\116 \065\114\109")or Tool.Parent:FindFirstChild("\082\105\103\104\116\072\097\110\100")if f then local a=f:WaitForChild("\082\105\103\104\116\071\114\105\112",.01)if a then Grip2=a:Clone()Grip2.Name="\076\101\102\116\071\114\105\112"Grip2.Part0=j Grip2.Part1=Handle2 Grip2.Parent=j end end end end)Tool.Unequipped:connect(function()if Module.DualEnabled and workspace.FilteringEnabled then Handle2.CanCollide=true if Grip2 then Grip2:Destroy()end end end)
--Viewmodel
if Module.VMIdleAnimationID ~= nil then
	local VMIdleAnim = Instance.new("Animation", Tool)
	VMIdleAnim.Name = "VMIdleAnim"
	VMIdleAnim.AnimationId = "rbxassetid://" .. Module.VMIdleAnimationID
end
if Module.VMFireAnimationID ~= nil then
	local VMFireAnim = Instance.new("Animation", Tool)
	VMFireAnim.Name = "VMFireAnim"
	VMFireAnim.AnimationId = "rbxassetid://" .. Module.VMFireAnimationID
end
if Module.VMReloadAnimationID ~= nil then
	local VMReloadAnim = Instance.new("Animation", Tool)
	VMReloadAnim.Name = "VMReloadAnim"
	VMReloadAnim.AnimationId = "rbxassetid://" .. Module.VMReloadAnimationID
end
if Module.VMShotgunClipinAnimationID ~= nil then
	local VMShotgunClipinAnim = Instance.new("Animation", Tool)
	VMShotgunClipinAnim.Name = "VMShotgunClipinAnim"
	VMShotgunClipinAnim.AnimationId = "rbxassetid://" .. Module.VMShotgunClipinAnimationID
end
if Module.VMShotgunPumpinAnimationID ~= nil then
	local VMShotgunPumpinAnim = Instance.new("Animation", Tool)
	VMShotgunPumpinAnim.Name = "VMShotgunPumpinAnim"
	VMShotgunPumpinAnim.AnimationId = "rbxassetid://" .. Module.VMShotgunPumpinAnimationID
end
if Module.VMHoldDownAnimationID ~= nil then
	local VMHoldDownAnim = Instance.new("Animation", Tool)
	VMHoldDownAnim.Name = "VMHoldDownAnim"
	VMHoldDownAnim.AnimationId = "rbxassetid://" .. Module.VMHoldDownAnimationID
end
if Module.VMEquippedAnimationID ~= nil then
	local VMEquippedAnim = Instance.new("Animation", Tool)
	VMEquippedAnim.Name = "VMEquippedAnim"
	VMEquippedAnim.AnimationId = "rbxassetid://" .. Module.VMEquippedAnimationID
end
if Module.SecondaryFireAnimationEnabled and Module.VMSecondaryFireAnimationID ~= nil then
	local VMSecondaryFireAnim = Instance.new("Animation", Tool)
	VMSecondaryFireAnim.Name = "VMSecondaryFireAnim"
	VMSecondaryFireAnim.AnimationId = "rbxassetid://" .. Module.VMSecondaryFireAnimationID
end
if Module.VMSecondaryShotgunPump and Module.VMSecondaryShotgunPumpinAnimationID ~= nil then
	local VMSecondaryShotgunPumpinAnim = Instance.new("Animation", Tool)
	VMSecondaryShotgunPumpinAnim.Name = "VMSecondaryShotgunPumpinAnim"
	VMSecondaryShotgunPumpinAnim.AnimationId = "rbxassetid://" .. Module.VMSecondaryShotgunPumpinAnimationID
end
if Module.TacticalReloadAnimationEnabled and Module.VMTacticalReloadAnimationID ~= nil then
	local VMTacticalReloadAnim = Instance.new("Animation", Tool)
	VMTacticalReloadAnim.Name = "VMTacticalReloadAnim"
	VMTacticalReloadAnim.AnimationId = "rbxassetid://" .. Module.VMTacticalReloadAnimationID
end
if Module.InspectAnimationEnabled and Module.VMInspectAnimationID ~= nil then
	local VMInspectAnim = Instance.new("Animation", Tool)
	VMInspectAnim.Name = "VMInspectAnim"
	VMInspectAnim.AnimationId = "rbxassetid://" .. Module.VMInspectAnimationID
end

ChangeMagAndAmmo.OnServerEvent:connect(function(Player, Mag, Ammo)
	MagValue.Value = Mag
	AmmoValue.Value = Ammo
end)

Tool.Equipped:connect(function()
	--Player = game.Players:GetPlayerFromCharacter(Tool.Parent)
	--Character = Tool.Parent
	--Humanoid = Character:FindFirstChild("Humanoid")
	if Module.DualEnabled and workspace.FilteringEnabled then
		Handle2.CanCollide = false
		local LeftArm = Tool.Parent:FindFirstChild("Left Arm") or Tool.Parent:FindFirstChild("LeftHand")
		local RightArm = Tool.Parent:FindFirstChild("Right Arm") or Tool.Parent:FindFirstChild("RightHand")
		if RightArm then
			local Grip = RightArm:WaitForChild("RightGrip", 0.01)
			if Grip then
				Grip2 = Grip:Clone()
				Grip2.Name = "LeftGrip"
				Grip2.Part0 = LeftArm
				Grip2.Part1 = Handle2
				--Grip2.C1 = Grip2.C1:inverse()
				Grip2.Parent = LeftArm
			end
		end
	end
end)

Tool.Unequipped:connect(function()
	if Module.DualEnabled and workspace.FilteringEnabled then
		Handle2.CanCollide = true
		if Grip2 then
			Grip2:Destroy()
		end
	end
end)
