Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Ticking bar ( loading bar that fills up when a clock is finished ticking )?

Asked by 5 years ago
Edited 5 years ago

I need to know like how to make a bar fill up when a clock next to it is ticking like say the clock says 6 minutes and it counts down from that I would need a bar to slowly fill up by exactly 6 minutes.

Since this is not a request site I actually tried it but it didnt really make any sense to me but it is something.

gui = script.Parent
player = game.Players.LocalPlayer
for i = 360,0,-1 do

    gui:TweenSize(UDim2.new(i,0,1,0))
    wait(i)
end

2 answers

Log in to vote
0
Answered by
oftenz 367 Moderation Voter
5 years ago
Edited 5 years ago

Not 100% sure what you're asking but I used a Loop.

It is waiting exactly 6 minutes.

gui = script.Parent
player = game.Players.LocalPlayer
for i = 1,360 do

    gui:TweenSize(UDim2.new(i,0,1,0))
    wait(1)
end
0
You did the exact same thing but reversed the for loop. Troyonix 5 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

Tween for 60*6 seconds.

0
Ok Ind1v1duals 43 — 5y
0
I don't understand Ind1v1duals 43 — 5y

Answer this question