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: | nil)
Sends the provided message as a chat message to all players. Use the optional color parameter to set the color of the message.