Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I fix this script so it works and the parts stretch in different lengths every time?

Asked by 5 years ago

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:

01local part = script.Parent
02local tweenSvr = game:GetService("TweenService")
03local length = math.random(2.0, 4.0)
04 
05while true do
06    length = math.random(2.0, 4.0)
07    wait(length)
08end
09 
10local TweenStats = TweenInfo.new(
11    length,
12    Enum.EasingStyle.Linear,
13    Enum.EasingDirection.Out
14    -1,
15    true
View all 23 lines...

Answer this question