generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How to change the height of a part

Previous Thread :: Next Thread 
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
26 Nov 2015 11:07 AM
I don't want to use vector3.new to do this. Please help.
Report Abuse
inception101 is not online. inception101
Joined: 19 Dec 2010
Total Posts: 738
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
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
26 Nov 2015 11:13 AM
No no no. I want to change it's size. The height. Extend it.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
26 Nov 2015 11:18 AM
part:Resize(NormalId,Delta)
Report Abuse
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
26 Nov 2015 11:23 AM
@chim Might need some explanation on that.
Report Abuse
gskw is not online. 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
inception101 is not online. inception101
Joined: 19 Dec 2010
Total Posts: 738
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
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
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
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
26 Nov 2015 11:55 AM
Thanks all for the help.
Report Abuse
demonshadow553 is not online. demonshadow553
Joined: 06 Sep 2013
Total Posts: 2626
28 Nov 2015 03:52 AM
Another thing is now I want it to gradually grow.
Report Abuse
LilMcManiac is not online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
28 Nov 2015 09:29 AM
for i 1=1,10 do
part:Resize(Enum.NormalId.SURFACE, 1)
end
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image