#Best method, table or no table

1 messages · Page 1 of 1 (latest)

somber dagger
#

Hello, I have a function where i pass multiple frame to destroy child, and I want to know which way is the best, table or no table ?

local function TEST
    for _, GuiObject in ipairs({...}) do
    -- code
end

Or

local function TEST
    for i = 1, select("#", ...) do
        local GuiObject = select(i, ...)
    -- code
end
long lotus
#

Also you can get rid of ipairs

#

Roblox already does that