Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

these kick and message commands are not working help?

Asked by 9 years ago

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)

1
Use CodeBlock please? Adryin 120 — 9y
0
whats codeblock dragojake1013 0 — 9y

Answer this question