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

How to get selected part/object in studio through a plugin?

I'm working on my own plugin and I don't know how to get the objects selected in studio explorer (when you click on something in the explorer in studio it highlights blue) when my plugin is clicked. I've tried searching on the wiki but I don't really know what I'm searching for.

1 answer

✓ Accepted answer

The Get function of Selection will meet your needs.

local selectedObjects= game:GetService("Selection"):Get()

selectedObjects will be a table of Instances that are currently selected by the user.

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