local Z=script:WaitForChild("\083\111\117\110\100\115")local e=Z:GetChildren()for Z=1,#e,1 do maxLines=#e end local t=true local function U()local e=math.random(1,maxLines)local t=tostring(e)Z[t]:Play()if Z[t]:FindFirstChild("\069\102\102\101\099\116")then local e=Z[t].Effect local U=e:Clone()U.Parent=chr.PrimaryPart U.Disabled=false end end;(chr:WaitForChild("\072\117\109\097\110\111\105\100")).Died:Connect(U)
--chr.PrimaryPart:WaitForChild("Died"):Destroy()
local folder = script:WaitForChild("Sounds")
local soundsDes = folder:GetChildren()
for i = 1, #soundsDes do
	maxLines = #soundsDes
end

local canPlay = true
local function died()
	local ranNo = math.random(1, maxLines)
	local str = tostring(ranNo)

	folder[str]:Play()

	if folder[str]:FindFirstChild("Effect") then
		local effect = folder[str].Effect
		local clone = effect:Clone()
		clone.Parent = chr.PrimaryPart
		clone.Disabled = false
	end
end

chr:WaitForChild("Humanoid").Died:Connect(died)
