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

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

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

✓ Accepted answer

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.

1 comment

0

I never thought of that. That's really clever! Thanks!

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