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
11 years ago
1if msg:lower():sub(1,8) == "removesp" then
2    for i,v in pairs(game.StarterPack:GetChildren()) do
3        v:Destroy()
4    end
5end

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 — 11y
0
None devDave 50 — 11y
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 — 11y
0
Yes I know that devDave 50 — 11y

1 answer

Log in to vote
0
Answered by 11 years ago

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

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

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

Ad

Answer this question