S0 I am trying to make this XP bar have a full bar that grows with it. It is very confusing... Help?
while true do wait(0.01) script.Parent.Size = (0.1) wait(2) script.Parent.Text = (0.2) wait(5) script.Parent.Text = (0.3) wait(10) script.Parent.Text = (0.4) wait(15) script.Parent.Text = (0.5) wait(20) script.Parent.Text = (0.6) wait(25) script.Parent.Text = (0.7) wait(30) script.Parent.Text = (0.8) wait(35) script.Parent.Text = (0.9) wait(40) wait(0.1) script:Remove() end
I would recommend using a simple for-do statement. You also changed Size
to Text
Here is my improved script:
waitTime = 5 for i = 0, 1, .1 do script.Parent.Size = UDim2.new(i,0,1,0) wait(waitTime) waitTime = waitTime + 5 --Waits five more seconds each time the script loops around end