Npc Respawn Chat Message

I just a want a npc respawn message on the chat i been finding and making it but im kinda bad at scripting if you could help me i appreciate it.

In a LocalScript:

For TextChatService:

game:GetService("TextChatService").TextChannels.RBXGeneral:DisplaySystemMessage("Message here")

For LegacyChatService:

game:GetService("StarterGui"):SetCore("ChatMakeSystemMessage", {
    Text = "Message here",
    Color = Color3.fromRGB(255, 255, 255),
    Font = Enum.Font.Michroma,
    FontSize = Enum.FontSize.Size24
})

All of these are customisable.