local options = {} table.insert(options,game.Players:GetChildren()) table.insert(options,game.Workspace.Clones:GetChildren()) table.insert(options,game.Workspace.NPCs:GetChildren()) for _, name in pairs(options) do print(name.Name) end
I want to add all of the players, NPCs, and Clones in my game into a table. The NPCs and Clones are all in folders in the Workspace. How do I add all of these values to the table? Is there any way I can slightly tweak my current script, or will I need to do for loops for each category (Players, NPCs, Clones) adding each player, NPC, and clone into the table?