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

Help with kicking a player?

Asked by 8 years ago
if string.sub(Command, 1, 5) == "kick/" then
    local suspect = game.Players:FindFirstChild(string.sub(Command, 6))

    if suspect ~= nil then 
        suspect:Kick("noob")
    end
end

It won't work, help?

1
Is this your whole script? if not, please show it all. You have no variables set Shawnyg 4330 — 8y

Answer this question