local function r()local r=Tool.Parent local z=r:FindFirstChild("\072\117\109\097\110\111\105\100")if z then FireAndReloadTrack=z:LoadAnimation(FireAndReloadAnimation)end end local function z(r)if r=="\069\110\097\098\108\101\100"and Tool.Enabled==false then if FireAndReloadTrack then FireAndReloadTrack:Play()end end end local function u()if FireAndReloadTrack then FireAndReloadTrack:Stop()end end


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
