#I need help in cooldown gui
3 messages · Page 1 of 1 (latest)
local frame = script.Parent -- set this to your frame that you want to Tween.
frame:TweenSize(
UDim2.new(0,0,0,0), -- UDim2 is basically Vector3 but for 2D elements like GUI.
"In", -- Easing Direction
"Linear", -- Easing Style
5 -- How long you want the Tween to take.
)
wait(5) -- set this to the same amount of time as the number in TweenSize, because the following code DOES NOT WAIT for the tween to be finished before running.
frame.Visible = false
-- now you can set the frame back to it's original size by using UDim2.new(size, size, size, size) if you want this to repeat.
** You are now Level 6! **