scolen Posted June 5, 2023 Share Posted June 5, 2023 Why is guiSetVisible not when progressbar is 0 ? timeBar = 100 progBar = guiCreateProgressBar(321, 533, 159, 34, false) setTimer(function() timeBar = timeBar - 6.66666666667 lastTime = timeBar guiProgressBarSetProgress(progBar, lastTime) if lastTime == 0 then guiSetVisible(progBar, false) end end, 1000, 15) Link to comment
Shady1 Posted June 5, 2023 Share Posted June 5, 2023 (edited) timeBar = 100 progBar = guiCreateProgressBar(321, 533, 159, 34, false) setTimer(function() timeBar = timeBar - 6.66666666667 lastTime = timeBar guiProgressBarSetProgress(progBar, lastTime) if lastTime <= 0 then guiSetVisible(progBar, false) end end, 1000, 15) I didn't understand, but one detail caught my attention and I wanted to edit it. Edited June 5, 2023 by Shady1 1 Link to comment
scolen Posted June 5, 2023 Author Share Posted June 5, 2023 56 minutes ago, Shady1 said: timeBar = 100 progBar = guiCreateProgressBar(321, 533, 159, 34, false) setTimer(function() timeBar = timeBar - 6.66666666667 lastTime = timeBar guiProgressBarSetProgress(progBar, lastTime) if lastTime <= 0 then guiSetVisible(progBar, false) end end, 1000, 15) I didn't understand, but one detail caught my attention and I wanted to edit it. ohhh thanks bro worked Link to comment
Shady1 Posted June 5, 2023 Share Posted June 5, 2023 10 minutes ago, scolen said: ohhh thanks bro worked you're welcome. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now