The image label in this script only shows one of the two image labels I have created. Why is that?
Goulstem helped in the making of this.
02 | local content = game:GetService( 'ContentProvider' ) |
11 | for _,v in next ,images do |
16 | local content = game:GetService( 'ContentProvider' ) |
25 | for _,b in next ,images do |
30 | script.Parent:RemoveDefaultLoadingScreen() |
32 | local screen = Instance.new( "ScreenGui" ) |
33 | screen.Parent = game.Players.LocalPlayer:WaitForChild( "PlayerGui" ) |
35 | local frame = Instance.new( "Frame" ) |
37 | frame.Size = UDim 2. new( 1 , 0 , 1 , 0 ) |
38 | frame.BackgroundColor 3 = Color 3. new( 0 , 0 , 0 ) |
41 | local textlabel = Instance.new( "TextLabel" ) |
42 | textlabel.Parent = screen |
43 | textlabel.BackgroundColor 3 = Color 3. new( 255 , 255 , 255 ) |
44 | textlabel.BackgroundTransparency = 1 |
45 | textlabel.Transparency = 1 |
46 | textlabel.Position = UDim 2. new(. 4 , 0 , 0.65 , 0 ) |
47 | textlabel.Size = UDim 2. new( 0.25 , 0 , 0.1 , 0 ) |
48 | textlabel.Font = "Legacy" |
49 | textlabel.FontSize = "Size24" |
50 | textlabel.Text = "Im all fired up!" |
51 | textlabel.TextColor 3 = Color 3. new( 0 , 0 , 255 ) |
52 | textlabel.TextScaled = true |
53 | textlabel.TextWrapped = true |
54 | textlabel.TextXAlignment = "Center" |
55 | textlabel.TextYAlignment = "Center" |
57 | local imagelabel = Instance.new( "ImageLabel" ) |
58 | imagelabel.Parent = frame |
59 | imagelabel.Size = UDim 2. new( 0.5 , 0 , 1 , 0 ) |
61 | imagelabel.Position = UDim 2. new( 0 , 0 , 0 , 0 ) |
63 | local imagelabel 1 = Instance.new( "ImageLabel" ) |
64 | imagelabel.Parent = frame |
65 | imagelabel.Size = UDim 2. new( 0.5 , 0 , 1 , 0 ) |
67 | imagelabel.Position = UDim 2. new( 0.5 , 0 , 0 , 0 ) |
70 | for i,v in ipairs (images) do |
75 | for i,b in ipairs (images) do |
80 | while game.ContentProvider.RequestQueueSize > 0 do |
81 | textlabel.Text = "I'm all fired up!" .. string.rep( "." ,count) |
82 | count = (count + 1 ) % 4 |
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)