Joriangames

Loading bar localscript

Jun 8th, 2021
727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.93 KB | None | 0 0
  1. --[[
  2. Thanks for using this script
  3. This script is made by Joriangames/Problox Studio Scripts
  4. Want to know how to use this and script explanation?
  5. Watch my tutorial: https://youtu.be/zA5cZb46dFM
  6.  
  7. ]]
  8.  
  9. wait()
  10. local LoadingFrame = script.Parent.Background.Loading
  11. local insideFr = LoadingFrame.Inside
  12. local Text = LoadingFrame.Percentage
  13.  
  14. for i = 1, 100, 1 do
  15.     Text.Text = "Loading "..i.."%"
  16.    
  17.     local newSize = i/100
  18.     insideFr:TweenSize(UDim2.new(newSize,0,1,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quart, 0.1, true)
  19.     print(insideFr.Size)
  20.    
  21.     if i == 56 then
  22.         print("It's 56")
  23.         wait(.1)
  24.     end
  25.     wait(.03)
  26. end
  27.  
  28. wait(1)
  29.  
  30. for i = 0,1.01,0.01 do
  31.     LoadingFrame.BackgroundTransparency = i
  32.     LoadingFrame.Percentage.TextTransparency = i
  33.     script.Parent.Background.Title.TextTransparency = i
  34.    
  35.     script.Parent.Background.BackgroundTransparency = i
  36.     insideFr.BackgroundTransparency = i
  37.     Text.TextTransparency = i
  38.     wait(0.01)
  39. end
Advertisement
Add Comment
Please, Sign In to add comment