Misc. functions

This module has some functions non-related to the chat but can be used interchangeably. I plan on adding more in the future.

:onPlayer

You add a function to this method and it'll be called for all players in the game and any new ones who join.

Arguments:

<function> callback -> function called when a player is detected -> called with <Instance> (player)

Sample code:

chatPlus:onPlayer(function(player)
    print(player)
end)

:setConfig

This method needs to be called immediately after the game starts in order for it to work properly. Specifically just before the chat loads or it won't work.

The default chat system has tens of customizations that most people don't know about, and this module allows you to set it up quickly without forking the chat. Credits for this function and settings list documentation to: https://devforum.roblox.com/t/changing-chat-type-and-other-chat-settings-without-forking/313614

Arguments:

<table> {...}

The full list of configurations for this function can be found below:

pageChat settings list

Sample code:

chatPlus:setConfig({
    ["ShowChannelsBar"] = true
})

Example:

:sendFakeMessage

This can be used for things like admin commands ;talk commands etc, it sends a fake message in the chat for everyone to see.

For people who may accuse me of making this for scams, that's not the intended function for this method. Unfortunately, this will probably be used to spit out scam games quicker but that part isn't a problem on my behalf because this has always been possible.

Arguments:

<string> name -> The speaker name

<string> text -> The message text

<string> channel (optional, default: 'All') -> The channel it's sent in

<string> nameColor (optional) -> The speaker's name color (defaults to their default chat color)

Sample code:

chatPlus:sendFakeMessage("ROBLOX","Stop trying to scam people lmao","All")

Result:

:removeTags

Remove the specified user's chat tags.

Arguments:

<Instance> player -> The Player in question

Sample code:

chatPlus:removeTags(game.Players.Roblox)

Last updated