a differrent player made me this and it doesnt work please help me fix it
local admins = {dragojake1013, meltdown878}-- the admins
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(message) if message == ':kick' and admins[player.Name] then if game.Players:FindFirstChild(string.sub(msg, 6)) then game.Players:FindFirstChild(string.sub(msg, 6)):Kick() end end end) end)
this is the m command
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(message) if message == ':m' and admins[player.Name] then instance.new (message) message.Parent = workspace workspace.message = m m.text = message wait (3) :remove(message) end end) -- maybe not with this parenthinsie im not sure end)