Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat wait() until game.Players.LocalPlayer
- game.Lighting.Blur.Size = 24
- script.Parent.Enabled = true
- local content = game:GetService("ContentProvider")
- local tw = game:GetService("TweenService")
- --local amon = #game.ReplicatedStorage.AssetsToLoad:GetChildren()
- script.Parent.Frame.amount:GetPropertyChangedSignal("Text"):Connect(function()
- print("changed: "..script.Parent.Frame.amount.Text)
- end)
- content:PreloadAsync(game.ReplicatedStorage.AssetsToLoad:GetChildren(), function()
- local amon = content.RequestQueueSize
- if amon <= 0 then
- wait(0.5)
- script.Parent.Frame.finished.Visible = true
- tw:Create(script.Parent.Frame.AText, TweenInfo.new(0.4, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
- tw:Create(script.Parent.Frame.amount, TweenInfo.new(0.4, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {TextTransparency = 1}):Play()
- tw:Create(script.Parent.Frame.finished, TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Position = UDim2.new(0.254, 0,0, 100)}):Play()
- wait(1.5)
- tw:Create(game.Lighting.Blur, TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Size = 0}):Play()
- tw:Create(script.Parent.Frame, TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {Position = UDim2.new(0.2, 0,1.078, 0)}):Play()
- wait(1)
- game.ReplicatedStorage.AssetsToLoad:ClearAllChildren()
- script.Parent:Destroy()
- else
- script.Parent.Frame.amount.Text = tostring(amon)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement