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

The image label in this script only shows one of the two image labels I have created. Why is that?

Asked by 9 years ago

Goulstem helped in the making of this.

01--ContentProvider service
02local content = game:GetService('ContentProvider')
03 
04--Put your images into a table
05local images = {
07 
08   }
09 
10--Load the images, from the table
11for _,v in next,images do
12    content:Preload(v)
13end
14 
15--ContentProvider service
View all 87 lines...

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)

1 answer

Log in to vote
1
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
9 years ago

In the future, give credit please.

You're overwriting the images table, rather than just adding another index to it. This is causing oly the overwitten image to display. Also, you're re-writing mutliple sections of code. Just put both your images in the initial images table.

01--ContentProvider service
02local content = game:GetService('ContentProvider')
03 
04--Put your images into a table
05local images = {
08}
09 
10--Load the images, from the table
11for _,v in next,images do
12    content:Preload(v)
13end
14 
15--Your Code
View all 73 lines...
0
It still shows only 1 image label Relampago1204 73 — 9y
1
Line 50-53 should have a 1. woodengop 1134 — 9y
Ad

Answer this question