ServerMessageModule
Module for sending server messages to specific players
This module sends a message to a specific player(s).
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.