bar:SetValue(math.min(1000, 50*CurTime())
-- This says: the bar should be at 100% when we reach the time that is 10 seconds from now.self.end_time = CurTime() + 10...-- In your Think stuff:bar:SetValue( math.min(CurTime() / self.end_time, 1) * 1000)