How do I fix this script so it works and the parts stretch in different lengths every time?
Alright, so i made a script that tweens the part. And I made a thing where the length changes overtime. But it doesn't work.
Here's the code:
01 | local part = script.Parent |
02 | local tweenSvr = game:GetService( "TweenService" ) |
03 | local length = math.random( 2.0 , 4.0 ) |
06 | length = math.random( 2.0 , 4.0 ) |
10 | local TweenStats = TweenInfo.new( |
12 | Enum.EasingStyle.Linear, |
13 | Enum.EasingDirection.Out |
19 | Size = Vector 3. new( 8 , 32 , 8 ) |
22 | local play = tweenSvr:Create(part, TweenStats, Goals) |