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

Studio variable for selected object?

I remember a long time ago there being a way to use command bar to run code on the selected object in the game.

For instance, if I have a model selected, I want to run a command that makes all the children of the selected object rotate by a certain increment.

Is this still a thing?

1 answer

✓ Accepted answer

If you want to get all the parts which are selected, you can use:

game.Selection:Get()

which returns a table of all the objects currently selected.

Some more information is here

1 comment

0

some wiki searching led me to this conclusion too. thanks!

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