How do I make the size change for every loop?
for n = 0, 100 do textbutton.Text = "Loading..." frame.Size = loader.Size + UDim2.new(0,2,0,0) wait(math.random(0.4,0.5)) end
Here is a script from my game that increases the loading bar by 0.009 every loop. It makes it look like a slow moving loading bar.
p = script.Parent il = script.Parent.ImageLabel for i = 1, 100 do il.Size = il.Size + UDim2.new(0.009,0,0) p.Text = "Loading Tumble-Slides "..(i*1).." %" wait(0.1) end
Please upvote if it worked how you wanted it to :)
You can use TweenSize()
and TweenPosition()
to move a GUI fluidly:
frame:TweenSize(UDim2.new(0.5,0,0.5),Enum.EasingDirection.Out, Enum.EasingStyle.Sine,0.5,true)
Learn more about TweenSize()
and TweenPosition()
here.