Search results
15 mar 2022 · You can try rotating the LookVector with CFrame.Angles. Since the LookVector is the “front” of a part and, in this case, the cylinder is rotated, making the LookVector be in a different direction. You can try fidgeting with the CFrame like this: direction = direction * CFrame.Angles(math.rad(90), 0, 0) 1 Like.
- Change Size of a Part without changing the position of it
part.Size = Vector3.new(10, 10, 10) part.CFrame = oldPos....
- Change Size of a Part without changing the position of it
10 mar 2022 · I selected two parts here and switched to “Scale”. I moved the left red colored circle to the left, but when I do that, everything starts to scale from all directions relative to the point that I dragged. However, if I select only one instance, it will change the length just fine.
2 lis 2021 · part.Size += Vector3.new(0, 0, 0) Change one of the components of the Vector3 value depending on which axis you want the part to scale along.
17 maj 2021 · You would need to change the coordinates in the Vector3 along with the .RightVector in order to change which face is growing. For a smoother “transition”, you would need to use a loop with a small yield (ideally with RunService). If you prefer a nonlinear growth, then you could use ROBLOX’s TweenService.
6 maj 2021 · You can only visually create a part several time its size, but collision won’t register. Use a BlockMesh and tinker around with the BlockMesh.Scale . Alternatives if you want to keep their collision, just duplicate and place.
8 gru 2021 · part.Size = Vector3.new(10, 10, 10) part.CFrame = oldPos. This is incredibly simple to achieve, just store the original position (represented by a CFrame value in this case) inside a variable and reassign it to the “CFrame” property of the BasePart instance after its size has been changed.
27 lut 2023 · So, what I have been trying to do is to create the part that expands itself until it hits to the specific size where it needs to stop and reset to the original size. Here is the script I have right now. script.Parent.Size = Vector3.new(13,13,13) if script.Parent.Size > Vector3.new(30,30,30) then.