Problem with a announce system

While I am making my kingdom, I maded a announcement system, but it says the text you said in chat, and is not appearing on others, my command is -m [message] Is there a way to fix it?

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")

local remoteEvent = ReplicatedStorage:WaitForChild("AdminRemotes"):WaitForChild("MEvent")

-- Function to handle the announcement and display it as a ScreenGui
local function handleAnnouncement(announcement)
	for _, player in pairs(game.Players:GetPlayers()) do
		if player:FindFirstChild("PlayerGui") then
			local playerGui = player.PlayerGui
			local announceGui = playerGui:FindFirstChild("Announce")

			if not announceGui then
				announceGui = Instance.new("ScreenGui")
				announceGui.Name = "Announce"
				announceGui.Parent = playerGui
			end

			local frame = announceGui:FindFirstChild("AnnounceFrame")
			if not frame then
				frame = Instance.new("Frame")
				frame.Name = "AnnounceFrame"
				frame.Size = UDim2.new(1, 0, 0.2, 0)
				frame.Position = UDim2.new(0, 0, 0.8, 0)
				frame.BackgroundColor3 = Color3.new(0, 0, 0)
				frame.BackgroundTransparency = 0.5
				frame.Parent = announceGui
			end

			local title = frame:FindFirstChild("Title")
			if not title then
				title = Instance.new("TextLabel")
				title.Name = "Title"
				title.Size = UDim2.new(1, 0, 0.5, 0)
				title.Position = UDim2.new(0, 0, 0, 0)
				title.BackgroundColor3 = Color3.new(1, 1, 1)
				title.TextColor3 = Color3.new(0, 0, 0)
				title.FontSize = Enum.FontSize.Size24
				title.Parent = frame
			end

			local message = frame:FindFirstChild("Message")
			if not message then
				message = Instance.new("TextLabel")
				message.Name = "Message"
				message.Size = UDim2.new(1, 0, 0.5, 0)
				message.Position = UDim2.new(0, 0, 0.5, 0)
				message.BackgroundColor3 = Color3.new(1, 1, 1)
				message.TextColor3 = Color3.new(0, 0, 0)
				message.Parent = frame
			end

			title.Text = "Message by: " .. player.Name
			message.Text = tostring(announcement)
			announceGui.Enabled = true

			wait(7)
			announceGui.Enabled = false
		end
	end
end

-- Connect the function to the RemoteEvent, and only handle announcements with the -m prefix
remoteEvent.OnClientEvent:Connect(function(announcement)
	if announcement:sub(1, 2) == "-m" then
		handleAnnouncement(announcement:sub(4)) -- Remove the -m prefix
	end
end)

Is the server firing MEvent with the "-m " prefix? If not, you can replace the connection with:

remoteEvent.OnClientEvent:Connect(handleAnnouncement)