Better integration between Explorer and Command Bar

As a Roblox developer, it is currently difficult to reference a part in the Workspace directly from the Command Line.

It would be nice if there was a way to click and drag a part into the Command Line (similar to how cmd prompts work on most major operating systems), or a way to copy the fullname of a part directly from the Explorer.

This would solve the issue by streamlining the process, and making the studio environment significantly easier to utilize.

1 Like

What are you trying to with the the Part in the Command Line?
For instance I often CFrame Parts from the Command Line. To do this I click on the Part, then have a CFrame line of code in the Command line to perform on that Part. After selecting the Part I click in that Command Bar line of code and hit Enter.

I am trying to set properties of parts, or CFrame them.

Is there a way to grab the currently selected part? This would be useful as a workaround.

If you have a Part selected in the Viewport with the Select, Move, Scale or Rotate tool as I said, and then just run the code in the Command Line by clicking Enter.

You can also just click on the Part in the Explorer window.

This is the line of code I juse to CFrame Parts individually on their own axes, or you can select a bunch of Parts and do the same thing as long as they are aligned in the same Orientation:

game.Selection:Get()[1].CFrame = game.Selection:Get()[1].CFrame * CFrame.new( 0 ,-0.0001, 0 ) * CFrame.Angles(0, 0, 0)

As you can see this line of code will make the Part move -.0001 studs (a very small amount) on it’s Y axis.

1 Like

Ah, this is what I was looking for.
This solves my issue. Thanks!

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.