#I need help in cooldown gui

3 messages · Page 1 of 1 (latest)

vernal geyser
#

yo
i need some help guys
can anyone tell me
how to tween size for a specifie timer
like i want to make it tween size from 100 to 0
in 5 seconds
like it slowly tween until
its gone by that 5 seconds
im making this for a cooldown so the cooldown show on the gui

ocean wolf
#
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.
rancid jasperBOT
#

studio** You are now Level 6! **studio