Why is the AllowMeCommand not working when it's supposed to be enabled?

I’m using a new format for my posts; let me know what you think.


Info

  • Achieve
    I’m attempting to enable the Me Command in the ChatSettings Module through a Local Script.
  • Issue
    No matter what I try, the Me Command won’t activate when I use the Local Script to change the setting.
  • Solutions I’ve Tried
    The only solution I’ve tried is by simply adding Chat Settings Module from the Client to the Server and inserting that into the Chat Service; however I quickly realized if Roblox sent an update to that script, I’d have to redo all of my work. Hence why I’m trying to do this change locally.

Script

--/Made By MillerrIAm\--
--/Functions\--
local ChatSettings = require(game.Chat:WaitForChild('ClientChatModules').ChatSettings)
--/Settings\--
local BubbleChatSettings = {	
	BubbleDuration = 20;
	MaxBubbles = 5;
	BackgroundColor3 = Color3.fromRGB(17, 17, 17);
	TextColor3 = Color3.fromRGB(173, 178, 184);
	TextSize = 24;
	Font = Enum.Font.JosefinSans;
	Transparency = .3;
	CornerRadius = UDim.new(0, 12);
	TailVisible = true;
	Padding = 8;
	MaxWidth = 300;
	VerticalStudsOffset = 0;
	BubblesSpacing = 6;
	MinimizeDistance = 40;
	MaxDistance = 100
}
local function ChatboxSettings(Message)
	--[Chat Behaviour Settings]--
	ChatSettings.WindowDraggable = false;
	ChatSettings.WindowResizable = true;
	ChatSettings.ShowChannelsBar = true;
	ChatSettings.GamepadNavigationEnabled = true;
	ChatSettings.AllowMeCommand = true;
	ChatSettings.ShowUserOwnFilteredMessage = true;
	ChatSettings.ChatOnWithTopBarOff = false;
	ChatSettings.ScreenGuiDisplayOrder = 6;
	ChatSettings.ShowFriendJoinNotification = false;
	--[ Chat Text Size Settings ]--
	ChatSettings.ChatWindowTextSize = 18;
	ChatSettings.ChatChannelsTabTextSize = 18;
	ChatSettings.ChatBarTextSize = 18;
	ChatSettings.ChatWindowTextSizePhone = 14;
	ChatSettings.ChatChannelsTabTextSizePhone = 18;
	ChatSettings.ChatBarTextSizePhone = 14;
	--[Font Settings]--
	ChatSettings.DefaultFont = Enum.Font.Nunito;
	ChatSettings.ChatBarFont = Enum.Font.Nunito;
	--[Color Settings]--
	ChatSettings.BackGroundColor = Color3.new(0, 0, 0);
	ChatSettings.DefaultMessageColor = Color3.new(1, 1, 1);
	ChatSettings.DefaultNameColor = Color3.new(1, 1, 1);
	ChatSettings.ChatBarBackGroundColor = Color3.new(0, 0, 0);
	ChatSettings.ChatBarBoxColor = Color3.new(0, 0, 0);
	ChatSettings.ChatBarTextColor = Color3.new(1, 1, 1);
	ChatSettings.ChannelsTabUnselectedColor = Color3.new(0, 0, 0);
	ChatSettings.ChannelsTabSelectedColor = Color3.new(30/255, 30/255, 30/255);
	ChatSettings.DefaultChannelNameColor = Color3.fromRGB(35, 76, 142);
	ChatSettings.WhisperChannelNameColor = Color3.fromRGB(102, 14, 102);
	ChatSettings.ErrorMessageTextColor = Color3.fromRGB(245, 50, 50);
	--[Window Settings]--
	ChatSettings.MinimumWindowSize = UDim2.new(0.3, 0, 0.25, 0);
	ChatSettings.MaximumWindowSize = UDim2.new(1, 0, 1, 0);
	ChatSettings.DefaultWindowPosition = UDim2.new(0, 0, 0, 0);
	--[Fade In and Out Settings]--
	ChatSettings.ChatWindowBackgroundFadeOutTime = 3.5;
	ChatSettings.ChatWindowTextFadeOutTime = 30;
	ChatSettings.ChatDefaultFadeDuration = 0.8;
	ChatSettings.ChatShouldFadeInFromNewInformation = false;
	ChatSettings.ChatAnimationFPS = 20.0;
	--[Channel Settings]--
	ChatSettings.GeneralChannelName = "All";
	ChatSettings.EchoMessagesInGeneralChannel = false;
	ChatSettings.ChannelsBarFullTabSize = 4;
	ChatSettings.MaxChannelNameLength = 12;
	ChatSettings.RightClickToLeaveChannelEnabled = true;
	ChatSettings.MessageHistoryLengthPerChannel = 50;
	ChatSettings.ShowJoinAndLeaveHelpText = false;
	--[Message Settings]--
	ChatSettings.MaximumMessageLength = 200;
	ChatSettings.ClickOnPlayerNameToWhisper = true;
	print(Message)
end

--/Main Script\--
if game.Chat.BubbleChatEnabled == false then
	print("Bubblechat is disabled. Did you enable it from Chat properties?")
end

if game.Chat.LoadDefaultChat == false then
	print("DefaultChat is disabled.")
end

pcall(function()
	game:GetService("Chat"):SetBubbleChatSettings(BubbleChatSettings)
	ChatboxSettings("Completed")
end)

Thank you for any help you can give me.

I could not find AllowMeCommand in this article

Where did you find it?

It’s in the ClientChatModules>ChatSettings script.

Unfortunately ClientChatModules is a very confusing name and some of these modules and settings are actually also accessed on the server. The AllowMeCommand setting is accessed on the server so changing this from a local script won’t work.

I think the best way to do this is probably forking just the ChatSettings module and putting that in Chat Service. If you have forked the module it will not be overridden when the chat scripts are updated and we will maintain backwards compatibility so I wouldn’t worry about just forking the ChatSettings module (forking other module would mean possibly losing out on valuable updates).

3 Likes