How to visualize cooldowns with gui?

I would like to know, how can I visualize cooldowns with gui.

Video for reference of what I would like to achieve.
(Incase the video doesn’t load, In the video i show an example in a roblox game of the visualization i want to achieve the example being that the frame visualizing the cooldown is being sized down along the Y axis)

Try this:

for i = [How long you want], 0, -1 do
	task.wait(1) -- You can change this to what number it should count down by
	[Your text] = tostring(i)
end

Also the video doesn’t load so this is just my best guess on what you want to achieve :slight_smile:

1 Like

It is a good way of visualizing cooldowns, just not the one I want, I went ahead and edited the post to explain the video incase it didnt load. Thank you for informing me about the video not loading.

frame:TweenSize(UDim2.fromScale(1, 0), "InOut", "Linear", cooldownTime, true)

Yes, this has worked. Thank you very much!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.