Okay, so I put this code into a serverscript inside of game.ServerScriptService:
local admins = {"Player","Stiiky"}
function tableContains(t, value)
for _, v in pairs(t) do
if v == value then
return true
end
end
return false
end
function onChatted(message, player)
if message:sub(1, 6) == "|eatme" and tableContains(admins, player.Name) then
print (message:sub(7,#message)
end
end
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(message) onChatted(message, player) end)
end) |