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

how do i make a frame tween from one side?

Asked by 5 years ago

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?

0
A left-to-right tween on an object rotated 90 degrees should create a top-to-bottom effect krugman87 5 — 5y
0
yes i know but the question is how to make it x_adams 4 — 5y
0
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. krugman87 5 — 5y
0
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 thebayou 441 — 5y

1 answer

Log in to vote
0
Answered by
mateyz 22
5 years ago
Edited 5 years ago

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.

Ad

Answer this question