Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My own Admin Command not working?

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.

4 comments

0

Any output?

0

None

0

Just making sure... you understand that removing things from StarterPack will only removing things from people's backpacks once they respawn, right?

0

Yes I know that

1 answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.