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

My script to remove inventory items is not working, I would appreciate some help? [closed]

Asked by 4 years ago

here it is

for _,v in pairs(backpack:GetChildren())
    if v.Name ~= "Menu" then
        v:Destroy()
    end

so basically it removes all the items in the inventory except for items called Menu thanks

0
You should post your entire script, as we have no idea on how was "backpack" defined and what is it User#32819 0 — 4y

Closed as Not Constructive by Ziffixture

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?