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.
Chat:FilterStringAsync(text, fromplayer, toplayer)