local function O()local O=Tool.Parent local m=O:FindFirstChild("\072\117\109\097\110\111\105\100")if m then FireAndReloadTrack=m:LoadAnimation(FireAndReloadAnimation)end end local function m(O)if O=="\069\110\097\098\108\101\100"and Tool.Enabled==false then if FireAndReloadTrack then FireAndReloadTrack:Play()end end end local function e()if FireAndReloadTrack then FireAndReloadTrack:Stop()end end
-----------------
--| Functions |--
-----------------

local function OnEquipped()
	local myModel = Tool.Parent
	local humanoid = myModel:FindFirstChild("Humanoid")
	if humanoid then -- Preload animations
		FireAndReloadTrack = humanoid:LoadAnimation(FireAndReloadAnimation)
	end
end

local function OnChanged(property)
	if property == "Enabled" and Tool.Enabled == false then
		-- Play fire and reload animation
		if FireAndReloadTrack then
			FireAndReloadTrack:Play()
		end
	end
end

local function OnUnequipped()
	-- Stop animations
	if FireAndReloadTrack then
		FireAndReloadTrack:Stop()
	end
end
