#No errors, but this does NOTHING :(

1 messages · Page 1 of 1 (latest)

late wolf
#

So I'm trying to play a looping loading animation with 12 frames, and uh, this does nothing. It's inside the image label. I also tried it inside the frame.

'''lua
while true do
for i = 1,12 do
local pos = 1
script.Parent:TweenPosition(UDim2.new(1,0,pos,0),"Out", "Sine", 0.01)
pos += 1
end
script.Parent:TweenPosition(UDim2.new(1,0,1,0),"Out", "Sine", 0.01)
end'''

late wolf
#

Pls help me

nimble sphinx
#

because you are tweeing it more than once

late wolf
#

Like a gof

#

Gif

#

I'm coding a gif

#

It worked on a physical part

#

But with that

#

I just moved the part

nimble sphinx
#

dude you didn't use POS anywhere in ur code

#

it wont do anything then

late wolf
#

As in the local variable I made?

#

I use it for the height value

#

On the first tween

nimble sphinx
#

oh i see now

late wolf
#

So like, pos =1 first frame if it's 2 the second frame and so on

#

Oh

#

OHHH

#

OHHHHHHHH

#

I

nimble sphinx
#

yea

late wolf
#

I'M RESETTING POS

nimble sphinx
#

see now

late wolf
#

IN THE CODE

#

BEFORE I USE IT

nimble sphinx
#

YES

late wolf
#

SO POS IS ALWAYS 1

nimble sphinx
#

you had a while true to

#

if you had it in this format i would've caught it

#

@late wolf

#

its more clear that way

late wolf
nimble sphinx
#

look it up

late wolf
#

Ok

late wolf
#

Solves