Hello, I have made an admin script. I have tried to make the admin script delete commands, but everything I do just doesn’t work or deletes every message. Keep in mind that this is only ONE script. No events or anything.
game.TextChatService:WaitForChild("TextChannels").RBXGeneral.ShouldDeliverCallback = function(msg)
if string.find(msg.Text, "/") then
newChatted(msg.Text, msg.TextSource.Name)
local properties = Instance.new("TextChatMessageProperties")
msg.Text = ""
properties.PrefixText = ""
properties.Text = ""
return properties
else
return msg
end
end
I don’t know what I’m doing wrong.