ServerMessageModule - Module for sending server messages to specific or all player(s)

ServerMessageModule

Module for sending server messages to specific players


This module sends a message to a specific player(s).

Screenshot

How to use

Insert module to ServerScriptService from here: ServerMessageModule - Roblox

Sample code
game.Players.PlayerAdded:Wait()
wait(3) --wait player chat load
local SMM = require(game:GetService("ServerScriptService").ServerMessageModule)
SMM:Init("Speaker","Channel")
SMM:ServerMessage(game.Players:GetPlayers(),"SERVER MESSAGE!!!!")
Functions

ServerMessageModule:Init(SystemSpeakerName,SystemChannelName)

Detail: Initiate ServerMessageModule.

Arguments

SystemSpeakerName (String): The title to send.
SystemChannelName (String): Subtitle to send.

ServerMessageModule:ServerMessage(Players,Message)

Detail: Send message to players.

Arguments

Players (Table): Targets to send. For all players, send game:GetService ("Players"):GetPlayers () to this argument.
Message (String): Message to send.

This module is used in the game Iā€™m making. Please do not request bug fixes, etc.

9 Likes

Wow, this looks like a great module for server announcements. Is there an option to send it to all players?

1 Like

ServerMessageModule:ServerMessage(game:GetService("Players"):GetPlayers (),Message)

1 Like