This member cannot be used in scripts, but is usable in the command bar and plugins.
This function makes the
Players/LocalPlayer chat the given message, which will only be viewable by users on the same team. Since this item is protected, attempting to use it in a
LocalScript will cause an error.
This function is used internally when the
Players/LocalPlayer sends a message to their team.
If you would like to create a custom chat system where you can define custom functions such as these, take a look at the tutorial here.
The message being chatted.
Sending Team Chat
This example demonstrates that the
Players/TeamChat function executes without error if using the Command Bar or a Plugin and errors if executed in a
When executed in the Command Bar, the function sends the specified message to all players on the same
Team as the