How do i make a loading bar on a part

The oven is working btw but my problem is I dont know how to make a loading bar above the model (5 seconds timer) and I tried understanding how TweenService works but I still cannot make a script from scratch :confused:

1 Like

You can use a BillboardGui, parent it to an invisible part above the oven, put a textlabel in the billboard gui and tween that

2 Likes

or you could just make a billboardgui above the oven with a frame and another frame inside of it. Put a script inside of the last frame and set it to Scale in the X axis doing like this:

frame.Size = UDim2.new(the total time for it to finish / the time remaining, 0, 1, 0)
--EXAMPLE

frame.Size = UDim2.new(5 / remainingTime, 0, 1, 0)
1 Like

i made the billboardgui but how do I make it work? Do I just insert the script on the Green TextLabel? :sweat_smile:

If the green bar is inside of the white one then yes.

1 Like

OUI SÍ, LO HICE POR TI IGNORÉ A TODOS ELZEZ IDEAZ Y UZÉ UN GRADIENTE DE UI, EPIK lmean YES I DID IT FOR YOU :smiley: I IGNORED EVERYONE ELZEZ IDEAZ AND UZED A UI GRADIENT, EPIK OK


but yeah this is an old project i made, just used ui gradient, woa

1 Like

wow thank you so much for this

1 Like