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

How do I change the speed of a GUI when it has been tweened?

I'm making a GUI that goes from the bottom of the screen right until the top, however, whenever entering a number value into the tween event the speed at which the GUI is moving is still exactly the same and the movement still happens in 1 second, but I'm not entirely sure how I would change this.

Below is the code that I have used and I'm not entirely sure why this doesn't work, when reading on the Roblox forums this is what I found.

Code:

	
textLabel:TweenPosition(UDim2.new(position, 0, -0.5, 0, nil, nil, 6))

The six is the time I want the GUI to finish its animation.

1 answer

✓ Accepted answer

Remember to check your code you forgot to end the parathenses.

textLabel:TweenPosition(UDim2.new(position, 0, -0.5, 0),nil,nil,6)

6 comments

0

Please accept if this helped you.

0

'Note that nil can be used for either of the easing options if you don't need to change the default EasingDirection of Out or the default EasingStyle of Quad.' Taken straight from the Roblox API.

0

Oh my bad, but did this fix it?

0

Also, I didn't forget to end the parenthesis.

0

okay but you ended the parenthesis wrongly, udim2 takes 4 numbers 2 scales 2 offsets.

0

Thanks.

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