Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Custom Loading Screen help?

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

✓ Accepted answer

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

3 comments

0

Thanks but next time try using a uh,Code block

0

Please use lua block.

0

How do I use the code block?

This discussion is preserved as it was. New answers, comments, and votes are closed.