ayvacs / chat-message-service

Interface for sending messages to clients via Roblox's default chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChatMessageService

An easy interface for sending system messages in Roblox chat on the server and client, optionally using RichText.

To install, follow the instructions at the top of each script in src/.

API

Server

:SpecifiedClient

ChatMessageService.Server:SpecifiedClient( client: Player, text: string ): nil

Send the specified message (text) to the specified client only. text may be any plain text message or properly-formated RichText string.

:SpecifiedClients

ChatMessageService.Server:SpecifiedClients( clients: table, text: string ): nil

Send the specified message (text) to all specified clients (Player instances of array clients) current client only. text may be any plain text message or properly-formated RichText string.

:AllClients

ChatMessageService.Server:AllClients( text: string ): nil

Send the specified message (text) to all available clients. text may be any plain text message or properly-formated RichText string.

Client

:CurrentClient

ChatMessageService.Client:CurrentClient( text: string ): nil

Send the specified message (text) to the current client only. text may be any plain text message or properly-formated RichText string.

About

Interface for sending messages to clients via Roblox's default chat

License:MIT License


Languages

Language:Luau 100.0%