Hello, with ROBLOX flagging games, I've gotten two of my games flagged and I think it's because of the admin command messages, private messages, hints, and timed messages not being filtered by ROBLOX's chat. The following is my code, but I'm not sure how to add the ROBLOX filter to it, can anyone help me out? Thanks in advance! (Kohltastrophe's original code. Very modified afterwards by Archeo and I.)
if msg:lower():sub(1,3) == "tm " then
local chk1 = msg:lower():sub(4):find(" ") + 3
local num = tonumber(msg:sub(4,chk1-1))
Message("Message from " .. plr.Name, msg:sub(chk1+1), false, game.Players:children(), num)
end
if msg:lower():sub(1,2) == "m " then
Message("Message from " .. plr.Name, msg:sub(3), true, game.Players:children())
end
if msg:lower():sub(1,2) == "h " then
Hint(plr.Name .. ": " .. msg:sub(3), game.Players:children())
end
if msg:lower():sub(1,3) == "pm " then
local chk1 = msg:lower():sub(4):find(" ") + 3
local plrz = GetPlr(plr, msg:lower():sub(4,chk1-1))
Message("Private Message from " .. plr.Name, msg:sub(chk1+1), true, plrz)
end
If you have any questions, please PM me on ROBLOX.

5 comments
That code was created by Kohltastrophe; please give credit.
Oh sorry about that, I forgot.
Are you using a custom chat system?
The games I put this script in uses Roblox's standard chat if that's what you're asking. This is the admin message guis.
kohl's code is ugly as heck