local function getMessage(player)
local DeathMessages = {
player.." Died.",
-- other death messages
}
local chosenResult = DeathMessages[math.random(1,#DeathMessages)]
return chosenResult
end
for _,v in pairs(game.Players:GetChildren()) do
v.Character.Humanoid.Died:Connect(function()
repeat
wait(0.05)
local Success = pcall(function()
game.StarterGui:SetCore("ChatMakeSystemMessage", {
Text = "[System Message]: "..getMessage(v.Name);
Color = Color3.fromRGB(201, 114, 60);
Font = Enum.Font.SourceSansBold;
TextSize = 18
})
end)
until Success
end)
end
This script was literally working yesterday, I haven't made any alterations and now it doesn't want to work.
