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

How do you add images into a loading screen?

Asked by
iGalio 10
9 years ago

So, I was on the roblox wiki, and there was a post about changing the loading screen, is there any way you can script an image into the loading screen?

1 answer

Log in to vote
0
Answered by 9 years ago

http://wiki.roblox.com/index.php?title=Custom_loading_screen

I have modified the example on the wiki to have an ImageLabelinstead of a TetLabel.

local Content =  "Picture"

script.Parent:RemoveDefaultLoadingScreen()

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

local ImageLabel= Instance.new("ImageLabel")
ImageLabel.Parent = screen
ImageLabel.Image = Content
ImageLabel.Size = UDim2.new(1,0,1,0)

while game.ContentProvider.RequestQueueSize > 0  do wait() end
 ---Wait to be loaded

screen.Parent = nil
Ad

Answer this question