Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Custom Loading Screen help?

Asked by
iLegitus 130
9 years ago

So,Ive tried this :

--[iLegimate]--

script.Parent:RemoveDefaultLoadingScreen()

local screen = Instance.new("ScreenGui")
screen.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local textLabel = Instance.new("TextLabel")
textLabel.Parent = screen
textLabel.Text = " LOADING FABLE OF HEROES ©"
textLabel.Size = UDim2.new(1,0,1,0)
textLabel.FontSize = Enum.FontSize.Size14

local count = 0
while game.ContentProvider.RequestQueueSize > 0  do
    textLabel.Text = "LOADING FABLE OF HEROES ©" .. string.rep(".",count)
    count = (count + 1) % 4
    wait(.3) 
end

screen.Parent = nil

But what i'd want to do is like,You know when it loads up the game right? It shows a grey background behind the text. What if i'd want to change that frame's colour,Add images etc...? What do i have to do?

1 answer

Log in to vote
0
Answered by 9 years ago

while game.ContentProvider.RequestQueueSize > 0 do] textLabel.Text = "LOADING FABLE OF HEROES ©" .. string.rep(".",count) count = (count + 1) % 4 wait(.3) end

local Label = Instance.new("ImageLabel", screen) Label.ZIndex = 2 --[ Apply Properties ]-- textLabel.ZIndex = 2 local Background = Instance.new("Frame", screen) --[ Apply Properties ]--

Basically, setting everything one ZIndex above will mean that anything with a lower ZIndex will appear behind it.

http://wiki.roblox.com/index.php?title=API:Class/GuiObject/ZIndex

0
Thanks but next time try using a uh,Code block iLegitus 130 — 9y
0
Please use lua block. BSIncorporated 640 — 9y
0
How do I use the code block? epicbreaker 95 — 9y
Ad

Answer this question