Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why Can't I Get 'RBXEmoteCommand'?

Asked by 2 years ago

I am trying to get RBXEmoteCommand to change the /e to /f

local ChatService = game:GetService("TextChatService")

ChatService.MessageReceived:Connect(function(msg:TextChatMessage)
    local TextChatCommands = msg:WaitForChild("TextChatCommands")
    local RBXEmoteCommand = TextChatCommands:WaitForChild("RBXEmoteCommand")
    RBXEmoteCommand.SecondaryAlias = "/f"
end)

The error show this:

Infinite yield possible on 'Instance:WaitForChild("TextChatCommands")'

Sorry if this question is unclear!

Answer this question