#How to make a time bar?

1 messages · Page 1 of 1 (latest)

tired lichen
#

Hello, can someone just tell me how to do it? I just want an idea, i do not want someone to make it.

supple sand
#

Do u mean a timer?

tired lichen
#

Like you know the health bar

#

It goes left when we got attacked

#

Something like that

#

But as time

tired lichen
dire oasisBOT
#

studio** You are now Level 4! **studio

supple sand
#

Just add healthchanged function()

tired lichen
#

It's not related to the health, it was just an example

#

Like a bar

supple sand
#

Oh

tired lichen
#

Goes left and it becomes totally green in 5 seconds

supple sand
#

On the gui

tired lichen
#

Yes gui

supple sand
#

Tweenservice

tired lichen
#

I will try thanks

supple sand
#

Yea search up tween service tutorials on yt or smth

tired lichen
#

It should go only left

rich dome
#

Timer as in debounce?

tired lichen
#

It will go to both sides if i do it

tired lichen
#

There won't be any digital letters

rich dome
#

Like when you punch you have to wat 3 seconds to punch again

tired lichen
#

Yes but with gui

rich dome
#

And the bar is to visualize the time

tired lichen
#

Yes

#

Exactly

rich dome
#

Make a variable that decreases value and set the gui size to the variable

tired lichen
#

i feel as someone already said it will be like the tween service

#

But how to

rich dome
tired lichen
#

Okay one minute

rich dome
#

Make a frame with the size you want, then put the bar inside of the frame and set size to 1,0,1,0 then set the size like this

Frame.Size = Udi2m.new(DB, 0, 1, 0)

Then just decrease «DB» as the timer goes down

#

its pretty hard to program on phone lol, I tried at least

tired lichen
#

Okay i got it later

#

The game crashed lol

rich dome
#

Lol

tired lichen
#

i forgot the wait

rich dome
#

I assumed lol

#

Relatable

tired lichen
#

Kind of lagging but working

rich dome
#

Lagging as is like in updating slow or as in the script lagging the game out?

rich dome
tired lichen
#

Okay thanks i will do it

#

It logged me out

rich dome
#

Wtf like did you get logged out of ur roblox acc for using tweenservice lol?

tired lichen
tame basin
#

add prints or use a breakpoint

tame basin
# tired lichen Hello, can someone just tell me how to do it? I just want an idea, i do not want...

basically you need to reduce everything to a range between 0~1 and have some function that takes a 0~1 range and resizes a ui frame from its min width (0) to its max width (1*size_width) and idk maybe put it on a background with some uicorners and there you have a healthbar or whatever progress bar 👍 in many ways you can think of a healthbar as like a progressbar except instead of 0% to 100% progress it instead shows health at 0% health (dead) to 100% health (full hp)

supple sand
#

to one side