local function E(E)E=string.lower(E)if E=="\101"then local E=time()if E>LastSummonTime+SUMMON_COOLDOWN then LastSummonTime=E local J=MyModel:FindFirstChild("\072\117\109\097\110\111\105\100")if J then J.WalkSpeed=0 end Spawn(function()for E=1,3,1 do if GongSound then GongSound:Play()end wait(1.5)end end)if SummonTrack then SummonTrack:Play()wait(3.125)end RaiseSkeletons()wait(1)if J then J.WalkSpeed=18 end end end end local function J(J)MyModel=Tool.Parent J.KeyDown:connect(E)local Z=MyModel:FindFirstChild("\072\117\109\097\110\111\105\100")if Z then SummonTrack=Z:LoadAnimation(SummonAnimation)end end local function Z()if SummonTrack then SummonTrack:Stop()end end

local function OnKeyDown(key)
	key = string.lower(key)
	if key == 'e' then
		local now = time()
		if now > LastSummonTime + SUMMON_COOLDOWN then
			LastSummonTime = now
			local humanoid = MyModel:FindFirstChild('Humanoid')
			if humanoid then
				humanoid.WalkSpeed = 0
			end
			Spawn(function()
				for i = 1, 3 do
					if GongSound then GongSound:Play() end
					wait(1.5)
				end
			end)
			if SummonTrack then
				SummonTrack:Play()
				wait(3.125)
			end
			RaiseSkeletons()
			wait(1)
			if humanoid then
				humanoid.WalkSpeed = 18
			end
		end
	end
end

local function OnEquipped(mouse)
	MyModel = Tool.Parent
	mouse.KeyDown:connect(OnKeyDown)

	local humanoid = MyModel:FindFirstChild('Humanoid')
	if humanoid then -- Preload animations
		SummonTrack = humanoid:LoadAnimation(SummonAnimation)
	end
end

local function OnUnequipped()
	if SummonTrack then SummonTrack:Stop() end
end
