0% found this document useful (0 votes)
74 views2 pages

Loading Ui Moon

The document is a Lua script that creates a loading screen for a game, featuring a gradient background, a title, and a loading bar. It includes visual elements such as patterns, text labels, and animations to indicate loading progress. The loading bar fills over a duration of 180 seconds while displaying the percentage of completion from 0% to 100%.

Uploaded by

bigfarts123pugs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views2 pages

Loading Ui Moon

The document is a Lua script that creates a loading screen for a game, featuring a gradient background, a title, and a loading bar. It includes visual elements such as patterns, text labels, and animations to indicate loading progress. The loading bar fills over a duration of 180 seconds while displaying the percentage of completion from 0% to 100%.

Uploaded by

bigfarts123pugs
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

task.

spawn(function()
local Loading = Instance.new("ScreenGui")
Loading.IgnoreGuiInset = true
Loading.Parent = game:GetService("CoreGui")

local Background = Instance.new("Frame")


Background.Size = UDim2.new(1, 0, 1, 0)
Background.Parent = Loading

local UIGradient = Instance.new("UIGradient")


UIGradient.Color = ColorSequence.new{
ColorSequenceKeypoint.new(0, Color3.fromRGB(0, 0, 0)),
ColorSequenceKeypoint.new(1, Color3.fromRGB(255, 255, 255))
}
UIGradient.Parent = Background

local Pattern = Instance.new("ImageLabel")


Pattern.BackgroundTransparency = 1
Pattern.Size = UDim2.new(1, 0, 1, 0)
Pattern.Image = "rbxassetid://2151741365"
Pattern.ImageTransparency = 0.5
Pattern.ScaleType = Enum.ScaleType.Tile
Pattern.TileSize = UDim2.new(0, 250, 0, 250)
Pattern.Parent = Background

local Title = Instance.new("TextLabel")


Title.AnchorPoint = Vector2.new(0.5, 0.5)
Title.BackgroundTransparency = 1
Title.Position = UDim2.new(0.5, 0, 0.3, 0)
Title.Size = UDim2.new(0.3, 0, 0.3, 0)
Title.Font = Enum.Font.GothamBlack
Title.Text = "🌴 GROW A GARDEN 🌴"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextScaled = true
Title.Parent = Background

local Percent = Instance.new("TextLabel")


Percent.AnchorPoint = Vector2.new(0.5, 0.5)
Percent.BackgroundTransparency = 1
Percent.Position = UDim2.new(0.5, 0, 0.5, 0)
Percent.Size = UDim2.new(0.8, 0, 0.04, 0)
Percent.Font = Enum.Font.GothamSemibold
Percent.Text = "Made by Moondiety"
Percent.TextColor3 = Color3.fromRGB(255, 255, 255)
Percent.TextXAlignment = Enum.TextXAlignment.Center
Percent.TextScaled = true
Percent.Parent = Background

local Bar = Instance.new("Frame")


Bar.AnchorPoint = Vector2.new(0.5, 0.5)
Bar.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Bar.BackgroundTransparency = 0.5
Bar.Position = UDim2.new(0.5, 0, 0.56, 0)
Bar.Size = UDim2.new(0.5, 0, 0.065, 0)
Bar.Parent = Background

local UICorner = Instance.new("UICorner")


UICorner.CornerRadius = UDim.new(0, 10)
UICorner.Parent = Bar

local Load = Instance.new("Frame")


Load.Name = "LoadBar"
Load.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
Load.Position = UDim2.new(0, 0, 0, 0)
Load.Size = UDim2.new(0, 0, 1, 0)
Load.Parent = Bar

local UICorner2 = Instance.new("UICorner")


UICorner2.CornerRadius = UDim.new(0, 10)
UICorner2.Parent = Load

local PercentOnBar = Instance.new("TextLabel")


PercentOnBar.AnchorPoint = Vector2.new(0.5, 0.5)
PercentOnBar.BackgroundTransparency = 1
PercentOnBar.Position = UDim2.new(0.5, 0, 0.65, 0)
PercentOnBar.Size = UDim2.new(1, 0, 0.05, 0)
PercentOnBar.Font = Enum.Font.GothamSemibold
PercentOnBar.Text = "0%"
PercentOnBar.TextColor3 = Color3.fromRGB(255, 255, 255)
PercentOnBar.TextScaled = true
PercentOnBar.Parent = Background

local Link = Instance.new("TextLabel")


Link.AnchorPoint = Vector2.new(0.5, 0.5)
Link.BackgroundTransparency = 1
Link.Position = UDim2.new(0.5, 0, 0.56, 0)
Link.Size = UDim2.new(0.3, 0, 0.02, 0)
Link.Font = Enum.Font.SourceSansBold
Link.Text = "discord.gg/moondiety"
Link.TextColor3 = Color3.fromRGB(150, 150, 150)
Link.TextScaled = false
Link.TextSize = 14
Link.Parent = Background

local TweenService = game:GetService("TweenService")


local tweenInfo = TweenInfo.new(180, Enum.EasingStyle.Linear,
Enum.EasingDirection.Out)
TweenService:Create(Load, tweenInfo, {Size = UDim2.new(1, 0, 1, 0)}):Play()

task.spawn(function()
for i = 0, 100 do
PercentOnBar.Text = i .. "%"
if i < 100 then
task.wait(180 / 100)
end
end
end)

end)

You might also like