I'm trying to make it so there's a sort of "Sleep bar" that gradually falls, and to regain it you have to sleep. The bar goes down, but it instantly goes all the way up, instead of slowly rising. Here's the snippet:
while script.Parent.Occupant ~= nil do
repeat
wait(.01)
prog.Value = prog.Value + 0.000000000001
until
prog.Value >= 0.5
end

1 comment
Idk but I noticed that your wait says ".01" maybe you have to add a zero like "0.01"