i tryed this but get back the channel is nil and the warn is only for server message for output
local AdminCommands = require(1163352238)
local Utilities = AdminCommands.Utilities
local ZombyGame = "/zombie "
local function onOwnerChatted(player, message, channel)
if message:sub(1, ZombyGame:len()):lower() == ZombyGame:lower() then
local aMessage = message:sub(ZombyGame:len() + 1)
if aMessage == "on" then
local zombiegame = game.ReplicatedStorage.MiniGames:FindFirstChild("ZombieGame")
if zombiegame then
zombiegame.Parent = workspace
else
warn "Not Found"
channel:SendSystemMessage ( "Not Found" )
end
end
if aMessage == "off"then
local zombiegame = workspace:FindFirstChild("ZombieGame")
if zombiegame then
zombiegame.Parent = game.ReplicatedStorage.MiniGames
else
warn "Not Found"
channel:SendSystemMessage ( "Not Found" )
end
end
end
end
local function onPlayerAdded(player)
-- Restrict this command to only the creator/owner
local Name = lol --my name
local Id = 123456789 --my id change this both
if player.UserId == game.CreatorId and game.CreatorType == Enum.CreatorType.User or player.Name == Name and player.UserId == Id then
player.Chatted:Connect(function (...)
onOwnerChatted(player, ...)
end)
end
end
-- Listen for players being added
for _, player in pairs(Players:GetPlayers()) do
onPlayerAdded(player)
end
Players.PlayerAdded:Connect(onPlayerAdded)
i did have made my own channel and this script is a normale script in ServerScriptService

2 comments
ok so i have to make an event for that so when in my script its not found i have to fire that event
There are countless variations but basically, yes.