game.Players.PlayerAdded:Connect(function(u)u.CharacterAdded:Connect(function()if script:FindFirstChild("\083\101\110\100\068\101\097\116\104\077\101\115\115\097\103\101")and script:FindFirstChild("\068\101\097\116\104\077\101\115\115\097\103\101")then(script:FindFirstChild("\083\101\110\100\068\101\097\116\104\077\101\115\115\097\103\101")).Parent=game.ReplicatedStorage;(script:FindFirstChild("\068\101\097\116\104\077\101\115\115\097\103\101")).Parent=game.StarterGui if u.Character:FindFirstChild("\072\117\109\097\110\111\105\100")then local v=u.Character:FindFirstChild("\072\117\109\097\110\111\105\100")v.Died:Connect(function()local v=DeathMessages[math.random(1,#DeathMessages)]local o=game.Players:GetChildren()for o,t in pairs(o)do if game.ReplicatedStorage:FindFirstChild("\083\101\110\100\068\101\097\116\104\077\101\115\115\097\103\101")then game.ReplicatedStorage.SendDeathMessage:InvokeClient(t,u.Name..(" "..v))end end end)end elseif game.ReplicatedStorage:FindFirstChild("\083\101\110\100\068\101\097\116\104\077\101\115\115\097\103\101")and game.StarterGui:FindFirstChild("\068\101\097\116\104\077\101\115\115\097\103\101")then if u.Character:FindFirstChild("\072\117\109\097\110\111\105\100")then local v=u.Character:FindFirstChild("\072\117\109\097\110\111\105\100")v.Died:Connect(function()local v=DeathMessages[math.random(1,#DeathMessages)]local o=game.Players:GetChildren()for o,t in pairs(o)do if game.ReplicatedStorage:FindFirstChild("\083\101\110\100\068\101\097\116\104\077\101\115\115\097\103\101")then game.ReplicatedStorage.SendDeathMessage:InvokeClient(t,u.Name..(" "..v))end end end)end end end)end)

game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function()
if script:FindFirstChild("SendDeathMessage") and script:FindFirstChild("DeathMessage") then
script:FindFirstChild("SendDeathMessage").Parent = game.ReplicatedStorage
script:FindFirstChild("DeathMessage").Parent = game.StarterGui
if player.Character:FindFirstChild("Humanoid") then
local hum = player.Character:FindFirstChild("Humanoid")
hum.Died:Connect(function()
local DeathMessage = DeathMessages[math.random(1,#DeathMessages)]
local Users = game.Players:GetChildren()
for i, User in pairs(Users) do
if game.ReplicatedStorage:FindFirstChild("SendDeathMessage") then
game.ReplicatedStorage.SendDeathMessage:InvokeClient(User, player.Name .. " " .. DeathMessage)
end
end
end)
end
elseif game.ReplicatedStorage:FindFirstChild("SendDeathMessage") and game.StarterGui:FindFirstChild("DeathMessage") then
if player.Character:FindFirstChild("Humanoid") then
local hum = player.Character:FindFirstChild("Humanoid")
hum.Died:Connect(function()
local DeathMessage = DeathMessages[math.random(1,#DeathMessages)]
local Users = game.Players:GetChildren()
for i, User in pairs(Users) do
if game.ReplicatedStorage:FindFirstChild("SendDeathMessage") then
game.ReplicatedStorage.SendDeathMessage:InvokeClient(User, player.Name .. " " .. DeathMessage)
end
end
end)
end	
end
end)
end)
