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

My tweening GUI is not working correctly?

Asked by 4 years ago

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

Log in to vote
0
Answered by 4 years ago

To tween GUI you should do:

GUI:TweenPosition(UDim2.new(0, 0, 0.61, 0) "In", "Quint", 5, false, nil)
0
What is the rest of that code xd_Lxcifer -3 — 4y
0
Wdym. The "false", "nil" or the rest of your code TestUser4646 1 — 4y
0
The "False", "nil" isn't really affecting anything or does anything but for it to work so i hope that cleared confusion.... TestUser4646 1 — 4y
0
Well the GUI works, I just need it to go the other way. xd_Lxcifer -3 — 4y
View all comments (5 more)
0
So you need to GUI to tween like off the screen or something else??? TestUser4646 1 — 4y
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 xd_Lxcifer -3 — 4y
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 TestUser4646 1 — 4y
0
How would I tween it negative? Which one do I change to change its tweening direction xd_Lxcifer -3 — 4y
0
you would instead do UDim2.new(0, 0, -.61, 0) TestUser4646 1 — 4y
Ad

Answer this question