Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local RunService = game:GetService("RunService")
- local SoundService = game:GetService("SoundService")
- local Lighting = game:GetService("Lighting")
- local CoreGui = game:GetService("CoreGui")
- local DURATION = 8
- local TEXT = "Loading NeverLose by Shok Team..."
- local SPINNER_ID = "rbxassetid://6646175684" -- white spinner
- local SOUND_ID = "rbxassetid://103750838557977"
- local sound = Instance.new("Sound")
- sound.SoundId = SOUND_ID
- sound.Volume = 1
- sound.Name = "ShokIntroSound"
- sound.Parent = SoundService
- sound:Play()
- game.Debris:AddItem(sound, DURATION + 3)
- local blur = Instance.new("BlurEffect")
- blur.Size = 24
- blur.Name = "ShokBlur"
- blur.Parent = Lighting
- local gui = Instance.new("ScreenGui")
- gui.IgnoreGuiInset = true
- gui.ResetOnSpawn = false
- gui.Name = "ShokIntroGui"
- gui.Parent = CoreGui
- local bg = Instance.new("Frame")
- bg.Size = UDim2.fromScale(1, 1)
- bg.BackgroundColor3 = Color3.new(0, 0, 0)
- bg.BackgroundTransparency = 0.4
- bg.BorderSizePixel = 0
- bg.Parent = gui
- local spinner = Instance.new("ImageLabel")
- spinner.Image = SPINNER_ID
- spinner.Size = UDim2.fromOffset(64, 64)
- spinner.Position = UDim2.fromScale(0.5, 0.5)
- spinner.AnchorPoint = Vector2.new(0.5, 0.5)
- spinner.BackgroundTransparency = 1
- spinner.ImageTransparency = 0
- spinner.Parent = bg
- local label = Instance.new("TextLabel")
- label.Text = TEXT
- label.Font = Enum.Font.SourceSansBold
- label.TextSize = 28
- label.TextColor3 = Color3.new(1, 1, 1)
- label.BackgroundTransparency = 1
- label.Position = UDim2.fromScale(0.5, 0.65)
- label.AnchorPoint = Vector2.new(0.5, 0)
- label.Size = UDim2.new(1, 0, 0, 40)
- label.TextTransparency = 0
- label.Parent = bg
- local angle = 0
- local rotateConnection = RunService.RenderStepped:Connect(function(dt)
- angle += dt * 200
- spinner.Rotation = angle % 360
- end)
- task.delay(DURATION, function()
- -- are you here to learn or skid?
- local fadeInfo = TweenInfo.new(1)
- TweenService:Create(bg, fadeInfo, {BackgroundTransparency = 1}):Play()
- TweenService:Create(spinner, fadeInfo, {ImageTransparency = 1}):Play()
- TweenService:Create(label, fadeInfo, {TextTransparency = 1}):Play()
- -- Tween blur out
- local blurTween = TweenService:Create(blur, fadeInfo, {Size = 0})
- blurTween:Play()
- task.wait(1.1)
- rotateConnection:Disconnect()
- gui:Destroy()
- blur:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment