3DCreator

LoadingScript

Apr 1st, 2021 (edited)
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local LoadingScreen = script.Parent:WaitForChild("LoadingScreen")
  2. local Title = LoadingScreen:WaitForChild("Title")
  3. local BarSize = LoadingScreen:WaitForChild("BarSize")
  4. local Bar = BarSize:WaitForChild("Bar")
  5. local RandomTime = math.random(15, 30)
  6.  
  7. Bar:TweenSize(UDim2.new(1, 0, 1, 0), "Out", "Quad", RandomTime)
  8. wait(RandomTime)
  9. LoadingScreen:TweenPosition(UDim2.new(0, 0,1.01, 0), "Out",1)
Add Comment
Please, Sign In to add comment