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

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)
