Dig UI tween is Stuttering when digging a block

So I am trying to fix a bug I have been having in my game for a while now, the UI bar to show the progress of the dig is Stuttering whenever digging a block has been completed.

Video:
https://i.gyazo.com/aca9e8542b466076b249fc4131920ca9.mp4

Code:
image

The commented code does not have anything to do with the stutter, I narrowed it down to the code that is not commented

(Don’t mind the messy code, sorry)

You’re currently yielding the code until the bar tween has completed? Generally I’d advocate you to avoid such practises altogether, and use the .Completed event in this case. Furthermore, tweens automatically overwrite each other, meaning that you don’t have to do this process manually (the commented code).

Cleaned up code:

bar.Size = UDim2.fromScale(0, 1)

barTween:Play()
barTween.Completed:Connect(function()
   bar.Size = UDim2.fromScale(0, 1)
end)