Sample loading screen for script
Key RequiredUniversal

Sample loading screen for script

Universal ScriptJustShareJustShare 4.9K views 31 executesUpdated Jan 18, 2025
5.0/ 5(1 votes)
10100% Positive
Lua Script•101 lines (3020 chars)
local Players = game:GetService("Players")
local Player = Players.LocalPlayer
local PlayerGui = Player:WaitForChild("PlayerGui")

local screenGui = Instance.new("ScreenGui")
screenGui.Name = "LoadingScreen"
screenGui.IgnoreGuiInset = true -- Agar layar penuh
screenGui.Parent = PlayerGui

local background = Instance.new("Frame")
background.Name = "Background"
background.Size = UDim2.new(1, 0, 1, 0)
background.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
background.BackgroundTransparency = 0.3
background.Parent = screenGui

local loadingText = Instance.new("TextLabel")
loadingText.Name = "LoadingText"
loadingText.Size = UDim2.new(1, 0, 0.1, 0)
loadingText.Position = UDim2.new(0, 0, 0.45, 0)
loadingText.BackgroundTransparency = 1
loadingText.Text = "Loading"
loadingText.TextColor3 = Color3.fromRGB(255, 255, 255)
loadingText.Font = Enum.Font.GothamBold
loadingText.TextScaled = true
loadingText.Parent = background

local progressBarBackground = Instance.new("Frame")
progressBarBackground.Name = "ProgressBarBackground"
progressBarBackground.Size = UDim2.new(0.6, 0, 0.05, 0)
progressBarBackground.Position = UDim2.new(0.2, 0, 0.6, 0)
progressBarBackground.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
progressBarBackground.BorderSizePixel = 0
progressBarBackground.Parent = background

local progressBar = Instance.new("Frame")
progressBar.Name = "ProgressBar"
progressBar.Size = UDim2.new(0, 0, 1, 0)
progressBar.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
progressBar.BorderSizePixel = 0
progressBar.Parent = progressBarBackground

local function animateLoadingText()
    while screenGui.Parent do
        for i = 1, 3 do
            loadingText.Text = "Loading" .. string.rep(".", i)
            wait(0.5)
        end
    end
end

local function startLoading()
    task.spawn(animateLoadingText)
    
    for i = 1, 100 do
        progressBar:TweenSize(
            UDim2.new(i / 100, 0, 1, 0),
            Enum.EasingDirection.Out,
            Enum.EasingStyle.Sine,
            0.05,
            true
        )
        wait(0.05)
    end

    wait(0.5) 
    screenGui:TweenSizeAndPosition(
        UDim2.new(0, 0, 0, 0), -- Menghilangkan loading screen dengan animasi
        UDim2.new(0.5, 0, 0.5, 0),
        Enum.EasingDirection.Out,
        Enum.EasingStyle.Sine,
        1,
        true,
        function()
            screenGui:Destroy()
            showMainMenu()
        end
    )
end

function showMainMenu()
    local Library = loadstring(game:HttpGet("https://pastebin.com/raw/b5QLVFiM"))() -- LIBRARY
    
    local Window = Library:CreateWindow('Satr - Hub') -- CREATE WINDOW
    
    local Tab = {
        Tab_1 = Window:addTab('•Home'),
        Tab_Setting = Window:addTab('•Settings'),
        Tab_2 = Window:addTab('•Main Farm'),
        Tab_5 = Window:addTab('•Teleport & Status'),
        Tab_6 = Window:addTab('•Shop'),
        Tab_7 = Window:addTab('•Misc')
    }
    
 
    Tab.Tab_1:addButton("Start Game", function()
        print("Game Started!")
    end)
end

startLoading()

Features & Information

Sample source code for animations loading screen
#Loading screen#Free#Universal#Open source

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts