-
I would like to achieve a lag safe inventory with a ton of buttons (Items).
-
My issue is that I am very inexperienced in making inventories (This is my first attempt) and I know there is a better way that what I’m doing. I’m afraid that as the inventories get larger, lag will become an issue. In simple words, I want to know how the professionals (People who have done this more than once) achieve a lag free inventory.
-
I’ve searched the Developer Hub I came up empty handed (although my search was very rushed).
local function inventory()
for _, item in pairs(inv.menu["2"].list:GetChildren()) do
for _, subitem in pairs(item:GetChildren()) do
if subitem.Name ~= "list" and subitem.Name ~= "pad" then
subitem.Activated:Connect(function()
print("Clicked " .. subitem.Name)
end)
end
end
end
end
inventory()
Note: I used the format that they wanted me to use hopefully I did good! I also didn’t want to waste my own and your time write a more descriptive topic.![]()