Hi there. I am trying to make a game similar to that of Mining Simulator as a school project. I've gotten some features down, but I am stuck on this one.
progress.Size = UDim2.new((cursorObject.Parent:FindFirstChild("Progress").Value/cursorObject.Parent:FindFirstChild("MaxHealth").Value),0,1,0)
The one above updates the GUI anytime the progress value changes.
cursorObject.Parent.Progress.Value = cursorObject.Parent.Progress.Value + damage
wait(1)
The one above is basically what is changing the value of the progress, constantly activating in a while loop, while mousebutton1 is being pressed.
Every time the GUI updates to match the progress value, it jumps to that value. This is expected. I am just wondering how would I smooth the transition out? Thank you.

3 comments
You can use :TweenSize() to specify a customary transition type between the current position an the given UDim2
If by smooth do you mean nicer/prettyer?
Yea. By smoothing out I mean making it look appealing to the eye. Feahren, could you elaborate? Thank you!