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

My tweening GUI is not working correctly?

I've worked with gui's a lot but still cannot figure out this issue.

main:TweenSize(UDim2.new(0, 0,0.61, 0),"In","Quint",.5) elseif open == true then open = false main:TweenSize(UDim2.new(.167, 0,0.61, 0),"In","Quint",.5)

Im trying to tween "main" to the right instead of the left. Don't worry about the stuff in the middle.

1 answer

To tween GUI you should do:

GUI:TweenPosition(UDim2.new(0, 0, 0.61, 0) "In", "Quint", 5, false, nil)

9 comments

0

What is the rest of that code

0

Wdym. The "false", "nil" or the rest of your code

0

The "False", "nil" isn't really affecting anything or does anything but for it to work so i hope that cleared confusion....

0

Well the GUI works, I just need it to go the other way.

0

So you need to GUI to tween like off the screen or something else???

0

Its on the right side of the screen, and I need to tween it like its going off the screen, but its not, if that makes any sense

0

The way i wrote mine was bout i assume being on the screen. If you want it to go off the screen make it tween either negative or more than one if its in scale..... offset im not sure

0

How would I tween it negative? Which one do I change to change its tweening direction

0

you would instead do UDim2.new(0, 0, -.61, 0)

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