how can i check what is selected in the explorer with a plugin?
✓ ANSWER ACCEPTED
explorer selection to 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
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
This also works from the command bar in Studio itself. Also, if no objects are selection, this will be an empty table.
And the in pairs won't do anything if it is given an empty table.
thanks I'll try it when I get a chance before I accept it.
thanks