Issue assigning 2 values to one variable

I’m trying to make “Items” hold information from 2 seperate locations.

This is what I’ve tried:

local items = Player.Backpack:GetChildren() and Player.Character:GetChildren()

How can I do this using only one variable instead of spreading it across 2?
Thanks!

You would need to use a table.

1 Like
local items  = {};
table.insert(items, Player.Backpack:GetChildren());
table.insert(items, Player.Character:GetChildren());

Try this

1 Like