Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Help with tween?

I am moving a frame and its not moving smoothly. It stops then moves then stops..

TopPosition = UDim2.new(0.49, 0, 0.45, 0)
BottomPosition = UDim2.new(0.49, 0, 0.55, 0)

for i=.1,6 do
 script.Parent:TweenPosition(BottomPosition,"InOut","Quad",.75)
 wait(.75)
 script.Parent:TweenPosition(TopPosition,"InOut","Quad",.75)
 wait(.75)

end

script.Parent:Remove()

1 answer

✓ Accepted answer
TopPosition = UDim2.new(0.49, 0, 0.45, 0)
BottomPosition = UDim2.new(0.49, 0, 0.55, 0)

for i=.1,6 do
 script.Parent:TweenPosition(BottomPosition,"InOut","Quad",.75, true)
 wait(.75)
 script.Parent:TweenPosition(TopPosition,"InOut","Quad",.75,true)
 wait(.75)

end

script.Parent:Remove()

This iss because there is a 5th constraint thats optional which says if it can be tweened again while being tweened called override http://wiki.roblox.com/index.php?title=API:Class/GuiObject/TweenPosition

This discussion is preserved as it was. New answers, comments, and votes are closed.