So let me explain. On Kohl's Admin, you can do, well, commands. And the thing is. If you put a /e behind the whole command, it still works but it doesn't show up on chat. I want to figure out how to make my kill command be silent when you put a /e behind it
-- local gods = {"Loot_0"}
-- game.Players.PlayerAdded:Connect(function(plr)
-- plr.Chatted:Connect(function()
if string.sub(msg, 1, 6) == prefix.."kill " then -- If you typed "-kill " then
for _, v in pairs(gods)
if plr.Name == v then -- If player is an admin, then
for _, b in pairs(game.Players:GetPlayers()) do
local player = b.Name:lower() -- If you typed the name all lowercase, it will work.
if string.sub(msg, 7) == player then -- If you typed the player name then
workspace:FindFirstChild(b.Name).Humanoid.Health = 0 -- Kills the player
end
end
end
end
end
-- The ends might look weird, ignore that.
So here is my command. If you typed -kill loot_0 in chat, it would kill me! But how would I make it so that if I typed /e before the whole command, it wouldn't show up in the chat?
