Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I change the size of a part from one face?

Asked by 6 years ago

Hi. I'm trying to change the size of a part from one face. Here's what I'm currently using to do that.

Part1.Size = Part1.Size + (Vector3.FromNormalId(Enum.NormalId.Left) * Vector3.new(0.01, 0, 0))

Here's what it's doing: http://prntscr.com/hpnif3

It kind of works, however, I want it to change the size from one face. Not the two. Like this: http://prntscr.com/hpnis5

How would I achieve that?

1 answer

Log in to vote
0
Answered by
thesit123 509 Moderation Voter
6 years ago

Make a Cylinder, that is position where you wanted to be and sized how you wanted it to be, and let's called that part, EndResult. Also let's call the cylinder you are trying scale, StartResult

What you want to do is to scale the StartResult to the size of EndResult, while moving its position to EndResult's position.

0
I never thought of that. That's really clever! Thanks! thebootsie123 160 — 6y
Ad

Answer this question