Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gui = script.Parent
- local background = gui:WaitForChild("Background")
- local bar = background:WaitForChild("Bar")
- local filler = bar:WaitForChild("Filler")
- local percentage = bar:WaitForChild("Percent")
- wait(5)
- for i = 1, 100 do
- wait(0.04)
- percentage.Text = i.."%"
- local formula = i/100
- filler:TweenSize(UDim2.new(formula, 0, 1, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, 0.1, true)
- if i == 34 or i == 67 or i == 88 then
- wait(1)
- end
- end
- local tween = game.TweenService:Create(gui.Fade, TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {["BackgroundTransparency"] = 0})
- tween:Play()
- tween.Completed:wait()
- gui.Background.Visible = false
- wait(2)
- tween = game.TweenService:Create(gui.Fade, TweenInfo.new(1.5, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), {["BackgroundTransparency"] = 1})
- tween:Play()
- tween.Completed:wait()
- game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, true)
- wait(1)
- gui:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement