Hi, I have a bunch of windows (30+) and want to give every single one of them a selection box. To speed things up, I want to use the selection service in the command bar. I want to select all the adornee’s and set it to their parent (the window).
How i want to achieve my goal
- I paste my code in the command bar
- I select all the selection boxes in my explorer
- I hit enter on the command bar and the computer automatically sets all the selection box adornees to their parents (the window)
The output says it’s expecting a table, but i am already giving it a table. Here is my code
local selection = game.Selection:Get() local allSelectionBoxes = selection[#selection] for i , v in pairs (allSelectionBoxes) do i.Adornee = i.Parent end
^ I’ve tried using both i and v but doesn’t work.
In the Output window, i get:
“:4: invalid argument #1 to ‘pairs’ (table expected, got Instance)”