|
| 26 Nov 2015 11:07 AM |
| I don't want to use vector3.new to do this. Please help. |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2015 11:10 AM |
Do you want to change the parts velocity going up? If so, you can change the part.Velocity to create a constant velocity at which the part will travel.
-inception101 (Trade, Development, Design) |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2015 11:13 AM |
| No no no. I want to change it's size. The height. Extend it. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 26 Nov 2015 11:18 AM |
| part:Resize(NormalId,Delta) |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2015 11:23 AM |
| @chim Might need some explanation on that. |
|
|
| Report Abuse |
|
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 26 Nov 2015 11:33 AM |
NormalId needs to be an Enum item that corresponds to a face, or in (hopefully) better words, which one of the part's faces' normals you want to resize the part along. Delta should be the number of studs you want to resize it by.
So for example, assuming that the top face of your part is facing up:
Part:Resize(Enum.NormalId.Top, 117) -- Replace 117 with however many studs you want. |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2015 11:35 AM |
Resize(5, workspace.part) --calls function parameter 1 is growth, parameter 2 is the part growing.
function Resize(x, part) PartSizeX = part.Size.X PartSizeZ = part.Size.Z part.Size = CFrame.new(PartSizeX, x, PartSizeZ) part.Position = part.Position + Vector3.new(0,(x*.5,0) end
-inception101 (Trade, Development, Design) |
|
|
| Report Abuse |
|
|
|
| 26 Nov 2015 11:38 AM |
:Resize returns two options;
(NormalId, DeltaAmount)
The first one, NormalId is what side of the part you want to resize
The second one, DeltaAmount is how many studs you want to resize it to |
|
|
| Report Abuse |
|
|
| |
|
|
| 28 Nov 2015 03:52 AM |
| Another thing is now I want it to gradually grow. |
|
|
| Report Abuse |
|
|
|
| 28 Nov 2015 09:29 AM |
for i 1=1,10 do part:Resize(Enum.NormalId.SURFACE, 1) end |
|
|
| Report Abuse |
|
|