Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

explorer selection to plugin?

how can i check what is selected in the explorer with a plugin?

1 answer

✓ Accepted answer

game.Selection:Get() Returns a table of everything that is selected. Always a table, so it needs to be able to iterate through the table:

for index, object in pairs(game.Selection:Get()) do
    print(index, object)
end

4 comments

0

This also works from the command bar in Studio itself. Also, if no objects are selection, this will be an empty table.

0

And the in pairs won't do anything if it is given an empty table.

0

thanks I'll try it when I get a chance before I accept it.

0

thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.