![]() ![]() Local properties = Instance. Here is a list of the most used admin commands in Roblox: stun Stuns the selected player unstun Unstuns the selected player removelimbs Removes the limbs of the selected player. This library uses chat modules, which allows for easy implementation of admin commands on top of the legacy chat system. TextChatService.OnIncomingMessage = function(message: TextChatMessage) An admin command is a keyword or phrase that a user with certain level of control can type into the chat window to trigger an action. Local TextChatService = game:GetService("TextChatService") ![]() Local players = game:GetService("Players") Local slot = replicatedStorage:WaitForChild("ChatSlot") ![]() LocalScript: local replicatedStorage = game:GetService("ReplicatedStorage") Why is this running twice per chat message? So I end up with two slots displaying the same message, instead of just one. The issue is that every time a player types something in chat, the TextChatService.OnIncomingMessage = function(message: TextChatMessage) runs two times, instead of once. I’m creating an admin command that logs every chat message sent. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |