I found this tweensize script
01 | local TweenService = game:GetService( "TweenService" ) |
02 | local Part = script.Parent |
03 |
04 | local info = TweenInfo.new( |
05 | 5 , |
06 | Enum.EasingStyle.Linear, |
07 | Enum.EasingDirection.Out, |
08 | 0 , |
09 | false , |
10 | 0 |
11 | ) |
12 | wait( 3 ) |
13 | local Goals = |
14 | { |
15 | Size = Vector 3. new( 2 , 2 , 1 ); |
The problem is that the part grows in both directions, up and down an i need it to only grow up what should i do?
Make sure to add half of the part y axis size to the position/cframe
Lets say
1 | goals.Size = Part.Size + Vector 3. new( 10 , 50 , 20 ) |
2 | goals.CFrame = Part.CFrame + CFrame.new( 0 ,- 25 , 0 ) |
Vector3.new(0,y,0) just use axis y if you want up and down
Ok for this you need to grow it specificly on the y axis, so for example if you're doing script.Parent.Size = Vector3.new(2, 2, 1) the middle number is the y axis, so you would only make the middle number go higher. Just incase if you still don't understand I'll put the fixed code in.~~~~~~~~~~~~~~~~~ local TweenService = game:GetService("TweenService") local Part = script.Parent
local info = TweenInfo.new( 5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, 0, false, 0 ) wait(3) local Goals = { Size = Vector3.new(0,2,0); }
local MakePartBigger = TweenService:Create(Part, info, Goals)
wait(5) MakePartBigger:Play() ~~~~~~~~~~~~~~~~~