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

[closed] Is it possible via script to extend a part in only 1 direction?

Asked by
H4X0MSYT 536 Moderation Voter
6 years ago
Edited 6 years ago

Normally, I would move the part by half of what I extended the part by. However, this part that that I need to extend in 1 direction could be angled. So, if I extended the part and moved it, it would not move in the angle the part is facing. Any ideas? The part needs to not extend backwards; and needs to be functional at any part rotation.

0
You would need to resize in object space. Take a look at http://wiki.roblox.com/index.php/CFrame#Local_and_World_Space User#5423 17 — 6y

1 answer

Log in to vote
0
Answered by
cabbler 1942 Moderation Voter
6 years ago

http://wiki.roblox.com/index.php?title=API:Class/BasePart/Resize

e.g. part:Resize(Enum.NormalId.Top,10)

0
Sorry, applying that to my method would be quite tedious changing the NormalId for every direction I want. I found a much better solution using CFrame. Thanks for the answer though. H4X0MSYT 536 — 6y
Ad

Answer this question