# ChatService

Example usage:

```lua
Events.PlayerAdded(function (event)
    ChatService.sendMessage(event.player.name .. " joined the game!")
end)

Events.PlayerRemoving(function (event)
    ChatService.sendMessage(event.player.name .. " left the game.")
end)
```

### Functions

#### sendMessage(message: string, color: [Color3](https://create.roblox.com/docs/reference/engine/datatypes/Color3) | nil)

Sends the provided message as a chat message to all players. Use the optional color parameter to set the color of the message.
