Hello, I'm making a GUI who's making a loading bar. Part > SurfaceGUI > Percentage ( TextLabel) ; Background (TextBox)
SurfaceGui = script.Parent
Percentage = SurfaceGui.Percentage
a = 0
while true do
a = a + 12
Percentage.Size = UDim2.new(0, a, 0.1, 0)
wait (0.1)
if
a == 1200
then
break
end
end
Is there a way to optimise this script or is it good ? Thanks

2 comments
Tween size can be good too.
Yes, TweenSize would give you a smoother animation.