Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make this loading bar work? NOT ANSWERED

Asked by
TrollD3 105
9 years ago

I want to make a script that makes a txt button like grow in size (horizontally) and then stop at a specific spot. I also want it to say loading on it when the bar finished growing. I want it to load in this direction --------->... Can someone help me rewrite this? script of what I have so far:

local h = script.Parent local xSize = 1 local speed = 0.0025 while true do xSize = xSize - speed h.Size = UDim2.new(xSize, 0, 0, 0) if xSize < -0.1 then xSize = 1 end wait() while true do function Load() local h = script.Parent wait (1) h.Text = "Loading Map." wait (.5) h.Text = "Loading Map.." wait (.5) h.Text = "Loading Map..." wait (1) h.Text = "Loading Map." wait (.5) h.Text = "Loading Map.." wait (.5) h.Text = "Loading Map..." wait (1) h.Text = "Loading Map." wait (.5) h.Text = "Loading Map.." wait (.5) h.Text = "Loading Map..." wait (1) h.Text = "Loading Map." wait (.5) h.Text = "Loading Map.." wait (.5) h.Text = "Loading Map..." end Load()

Answer this question