i want to make a cooldown of a skill by using tweensize but the cool down doesn't tween from up to down but it tweens from both sides and meet on the middle , how do i make it so it can tween from up to down or form down to up?
COMMUNITY QUESTION
how do i make a frame tween from one side?
1 answer
https://developer.roblox.com/en-us/api-reference/datatype/UDim2 https://developer.roblox.com/en-us/api-reference/function/GuiObject/TweenSize
Frame.Size = UDim2.new(0,0,1,0)
Frame:TweenSize(UDim2.new(1,0,1,0))
Using this it'll go from left to right, just slot in the variables like cooldown.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
A left-to-right tween on an object rotated 90 degrees should create a top-to-bottom effect
yes i know but the question is how to make it
From what you wrote it sounds like you already were able to create a side-to-side tween. Take that object that you are doing a side-to-side tween on, go into explorer, find the property 'Rotation' and set it to 90.
No offense, but I wouldn't use Rotation for this. That overcomplicates it and disables ClipsDescendants, which you may want. Just set the anchorpoint to the bottom and tween the y-size of the gui to get the effect you're looking for