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

My own Admin Command not working?

Asked by
devDave 50
10 years ago
if msg:lower():sub(1,8) == "removesp" then
    for i,v in pairs(game.StarterPack:GetChildren()) do
        v:Destroy()
    end
end

I have a Kohl's Admin v2 and then I added this into the script. The Goal is to remove the every Child in the StarterPack but I doesn't work.

0
Any output? systematicaddict 295 — 10y
0
None devDave 50 — 10y
0
Just making sure... you understand that removing things from StarterPack will only removing things from people's backpacks once they respawn, right? DaMrNelson 130 — 10y
0
Yes I know that devDave 50 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

Looking at all of Kohl's commands, I recommend just simply doing this:

if msg:lower():sub(1,9) == "removesp " then
    for i,v in pairs(game.StarterPack:GetChildren()) do
        v:Destroy()
    end
end

If that doesn't work, you can ask around or something of the sort.

Ad

Answer this question