local Q=script.Parent local m=Q:WaitForChild("\072\097\110\100\108\101")local V=Q:WaitForChild("\082\101\099\101\105\118\101\114")local e=Q:WaitForChild("\070\108\097\115\104")local B=e:WaitForChild("\073\109\097\103\101")local d=e:WaitForChild("\073\109\097\103\101\084\119\111")V.OnServerEvent:connect(function(Q,V,...)local p={...}if V and p then if V=="\080\108\097\121\083\111\117\110\100"then if m:FindFirstChild(p[1])then m[p[1]]:Play()end elseif V=="\070\108\097\115\104"then(m:WaitForChild("\070\108\097\115\104")).Enabled=p[1];(e:WaitForChild("\069\109\098\101\114\115")).Enabled=p[1];(B:WaitForChild("\070\108\097\115\104")).Rotation=math.random(0,360);(d:WaitForChild("\070\108\097\115\104")).Rotation=math.random(0,360)B.Enabled=p[1]d.Enabled=p[2]elseif V=="\068\097\109\097\103\101"then if p[1]:IsA("\072\117\109\097\110\111\105\100")and type(p[2])=="\110\117\109\098\101\114"then p[1]:TakeDamage(p[2])end end end end)
-- I like being simple.

local Tool = script.Parent
local Handle = Tool:WaitForChild("Handle")
local Receiver = Tool:WaitForChild("Receiver")
local Flash = Tool:WaitForChild("Flash")
local Spur = Flash:WaitForChild("Image")
local Smoke = Flash:WaitForChild("ImageTwo")

Receiver.OnServerEvent:connect(function(player, action, ...)
	local Data = { ... }
	if action and Data then
		if action == "PlaySound" then
			if Handle:FindFirstChild(Data[1]) then
				Handle[Data[1]]:Play()
			end
		elseif action == "Flash" then
			Handle:WaitForChild("Flash").Enabled = Data[1]
			Flash:WaitForChild("Embers").Enabled = Data[1]
			Spur:WaitForChild("Flash").Rotation = math.random(0, 360)
			Smoke:WaitForChild("Flash").Rotation = math.random(0, 360)
			Spur.Enabled = Data[1]
			Smoke.Enabled = Data[2]
		elseif action == "Damage" then
			if Data[1]:IsA("Humanoid") and type(Data[2]) == "number" then
				Data[1]:TakeDamage(Data[2])
			end
		end
	end
end)
