local E=game:GetService("\080\108\097\121\101\114\115")local Y=game:GetService("\084\101\120\116\083\101\114\118\105\099\101")local O={Id="\083\101\114\118\101\114\077\101\115\115\097\103\101",Aliases={"\115\109"};Description="\076\105\107\101 \116\104\101 \"\109\101\115\115\097\103\101\" \099\111\109\109\097\110\100\044 \098\117\116 \119\105\116\104\111\117\116 \097\117\116\104\111\114 \100\101\116\097\105\108\115\046";Args={{Type="\115\116\114\105\110\103";Name="\067\111\110\116\101\110\116",Description="\084\104\101 \099\111\110\116\101\110\116 \111\102 \116\104\101 \109\101\115\115\097\103\101 \116\111 \115\104\111\119"}}}function O.RunServer(O,x)local L=Y:FilterStringAsync(x,O.Executor.UserId,Enum.TextFilterContext.PublicChat)for E,Y in pairs(E:GetChildren())do(coroutine.wrap(function()local E=L:GetNonChatStringForUserAsync(Y.UserId)O:SendEvent(Y,"\083\104\111\119\071\108\111\098\097\108\077\101\115\115\097\103\101",{Content=E})end))()end return"\083\101\110\116 \109\101\115\115\097\103\101\046"end return O
local Players = game:GetService("Players")
local TextService = game:GetService("TextService")

local ServerMessageCommand = {
	Id = "ServerMessage",
	Aliases = { "sm" },
	Description = "Like the \"message\" command, but without author details.",
	Args = {
		{
			Type = "string",
			Name = "Content",
			Description = "The content of the message to show"
		}
	}
}

function ServerMessageCommand.RunServer(context, content)
	local filterResult = TextService:FilterStringAsync(content, context.Executor.UserId, Enum.TextFilterContext.PublicChat)

	for _, player in pairs(Players:GetChildren()) do
		coroutine.wrap(function()
			local filteredContent = filterResult:GetNonChatStringForUserAsync(player.UserId)
			
			context:SendEvent(player, "ShowGlobalMessage", {
				Content = filteredContent
			})
		end)()
	end

	return "Sent message."
end

return ServerMessageCommand