✓ Accepted answer
Admins = {"umeh", "Player"}
Player = script.Parent.Parent
function checkAdmin(plr)
for _,plrs in pairs(Admins) do
if plrs:lower() == plr.Name:lower() then
return true
end
end
end
Player.Chatted:connect(function(msg)
if checkAdmin(Player) then
if msg:lower():sub(1,3) == ":m " then
local m = Instance.new("Message", workspace)
m.Text = "["..Player.Name.."]: "..msg:sub(4)
wait(2)
m:Destroy()
end
end
end)
I edited it a little so that you can add player names easier to the script, look over the script and if you don't understand any of it please just ask.
3 comments
I want it to say Message and all the other messages you were saying :/
You need to explain what you want to do better.
Like kohls admin :m {Text}