Making a scale element with handles

How would I use handles to make a resizable part interface like the default Roblox Studio one?
Quite a mess, but here’s my idea:


[adding the orange ball to resize parts.]

how would i do this?