Advertisement
Tweak16

ROBLOX Scripting | Asset Loading Screen

Jun 26th, 2020 (edited)
3,456
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. -- Made by Wizertex, Neonblox Games
  2. -- Video: https://www.youtube.com/watch?v=5j9QnKn1A7U
  3.  
  4. local content = game:GetService("ContentProvider")
  5. local ReplicatedFirst = game:GetService("ReplicatedFirst")
  6. ReplicatedFirst:RemoveDefaultLoadingScreen()
  7.  
  8. script.Parent.Parent.Parent.Parent.Enabled = true
  9.  
  10. while wait(0.2) do
  11.     local assets = game.ContentProvider.RequestQueueSize
  12.     local yes, no = pcall(function()
  13.         script.Parent.Text = tostring(assets)
  14.     end)
  15.     if assets == 0 then
  16.         script.Parent.Text = "0"
  17.         script.Parent.Parent.Parent.LoadingText.Text = "Loaded!"
  18.         wait(0.5)
  19.         script.Parent.Parent.Parent:TweenSizeAndPosition(UDim2.new(0,0,0,0),UDim2.new(0.5, 0,0, 0),Enum.EasingDirection.In,Enum.EasingStyle.Quart,0.5)
  20.         wait(0.5)
  21.         script.Parent.Parent.Parent:Destroy()
  22.         break
  23.     end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement