Goulstem helped in the making of this.
--ContentProvider service
local content = game:GetService('ContentProvider')
--Put your images into a table
local images = {
"http://www.roblox.com/asset/?id=265610173"
}
--Load the images, from the table
for _,v in next,images do
content:Preload(v)
end
--ContentProvider service
local content = game:GetService('ContentProvider')
--Put your images into a table
local images = {
"http://www.roblox.com/asset/?id=265610212"
}
--Load the images, from the table
for _,b in next,images do
content:Preload(b)
end
--Your Code
script.Parent:RemoveDefaultLoadingScreen()
local screen = Instance.new("ScreenGui")
screen.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
local frame = Instance.new("Frame")
frame.Parent = screen
frame.Size = UDim2.new(1,0,1,0)
frame.BackgroundColor3 = Color3.new(0,0,0)
frame.Transparency = 1
local textlabel = Instance.new("TextLabel")
textlabel.Parent = screen
textlabel.BackgroundColor3 = Color3.new(255,255,255)
textlabel.BackgroundTransparency = 1
textlabel.Transparency = 1
textlabel.Position = UDim2.new(.4,0,0.65,0)
textlabel.Size = UDim2.new(0.25,0,0.1,0)
textlabel.Font = "Legacy"
textlabel.FontSize = "Size24"
textlabel.Text = "Im all fired up!"
textlabel.TextColor3 = Color3.new(0,0,255)
textlabel.TextScaled = true
textlabel.TextWrapped = true
textlabel.TextXAlignment = "Center"
textlabel.TextYAlignment = "Center"
local imagelabel = Instance.new("ImageLabel")
imagelabel.Parent = frame
imagelabel.Size = UDim2.new(0.5,0,1,0)
imagelabel.ZIndex = 1
imagelabel.Position = UDim2.new(0,0,0,0)
local imagelabel1 = Instance.new("ImageLabel")
imagelabel.Parent = frame
imagelabel.Size = UDim2.new(0.5,0,1,0)
imagelabel.ZIndex = 1
imagelabel.Position = UDim2.new(0.5,0,0,0)
--Iterate through table
for i,v in ipairs(images) do --ipairs iterates in order
imagelabel.Image = v
end
--Iterate through table
for i,b in ipairs(images) do --ipairs iterates in order
imagelabel.Image = b
end
local count = 0
while game.ContentProvider.RequestQueueSize > 0 do
textlabel.Text = "I'm all fired up!" .. string.rep(".",count)
count = (count + 1) % 4
wait(10)
end
screen.Parent = nil
``````
My goal for this script is to make it show two image labels so the two decals I made can come together. An error I have is
23:38:01.026 - ReplicatedFirst.Loading Screen:67: bad argument #3 to 'Image' (string expected, got nil)

2 comments
It still shows only 1 image label
Line 50-53 should have a 1.