How would I create a part dragger that works exactly like the one in Roblox Studio?

Why create my own solution when the perfect one already exists within Roblox Studio? Is there existing source code within the editor that I can yoink and modify to my liking?

If not, I’d appreciate if you could give me a basic direction on how to do grid snapping relative to a part’s surface.

Roblox Studio is closed source so I doubt the part dragger would be online (except if made by a volunteer), but to make your own, you need to get look vector of the part, which is Z axis and usually colored blue, UpVector is Y, green and last is right vector, X, when the draggers are dragged, you just part.CFrame *= part.CFrame.<item> of the corresponding axis. Add snapping by multiplying that CFrame with a number, that CFrame is always 1 or 0, so you can easily scale it up or down.

1 Like

Man I should seriously Google slightly more.

1 Like

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