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

Tween help? [Script Included]

Asked by
Vividex 162
10 years ago

My Studio: StarterGui ScreenGui Frame Drop ImageLabel NUM1 NUM2 NUM3 NUM4 NUM5 NUM6 NUM7

The NUM1-7's are TextLabels, and supposed to go up and down with the Drop script:

sp = script.Parent
NUM1 = sp.NUM1
NUM2 = sp.NUM2
NUM3 = sp.NUM3
NUM4 = sp.NUM4
NUM5 = sp.NUM5
NUM6 = sp.NUM6
NUM7 = sp.NUM7
while true do
    NUM1:TweenSize(UDim2.new(0, 3,0,math.random(60,0)),"Out","Linear",0.1,false)
    NUM2:TweenSize(UDim2.new(0, 3,0,math.random(60,0)),"Out","Linear",0.1,false)
    NUM3:TweenSize(UDim2.new(0, 3,0,math.random(60,0)),"Out","Linear",0.1,false)
    NUM4:TweenSize(UDim2.new(0, 3,0,math.random(60,0)),"Out","Linear",0.1,false)
    NUM5:TweenSize(UDim2.new(0, 3,0,math.random(60,0)),"Out","Linear",0.1,false)
    NUM6:TweenSize(UDim2.new(0, 3,0,math.random(60,0)),"Out","Linear",0.1,false)
    NUM7:TweenSize(UDim2.new(0, 3,0,math.random(60,0)),"Out","Linear",0.1,false)
    wait(0.05)
end

But it doesn't, output:

16:02:57.901 - Players.Player1.PlayerGui.ScreenGui.Frame.Dropper:12: bad argument #2 to 'random' (interval is empty)

1 answer

Log in to vote
1
Answered by
NotSoNorm 777 Moderation Voter
10 years ago

LOL, IS THIS MY CLUB BARS? LOLOLOL

ok, I will help though

sp = script.Parent
NUM1 = sp.NUM1
NUM2 = sp.NUM2
NUM3 = sp.NUM3
NUM4 = sp.NUM4
NUM5 = sp.NUM5
NUM6 = sp.NUM6
NUM7 = sp.NUM7
while true do
    NUM1:TweenSize(UDim2.new(0, 3,0,math.random(-60,0)),"Out","Linear",0.1,false)
    NUM2:TweenSize(UDim2.new(0, 3,0,math.random(-60,0)),"Out","Linear",0.1,false)
    NUM3:TweenSize(UDim2.new(0, 3,0,math.random(-60,0)),"Out","Linear",0.1,false)
    NUM4:TweenSize(UDim2.new(0, 3,0,math.random(-60,0)),"Out","Linear",0.1,false)
    NUM5:TweenSize(UDim2.new(0, 3,0,math.random(-60,0)),"Out","Linear",0.1,false)
    NUM6:TweenSize(UDim2.new(0, 3,0,math.random(-60,0)),"Out","Linear",0.1,false)
    NUM7:TweenSize(UDim2.new(0, 3,0,math.random(-60,0)),"Out","Linear",0.1,false)
    wait(0.05)
end

Btw it has to be negative.

0
kk just experimenting sry Vividex 162 — 10y
Ad

Answer this question