Images Not Loading

Hello, I’m trying to make a static effect on the players screen with an image label run by a local script although when I use this script none of the images load.

Script:

local Frame1 = "rbxassetid://8769169471"
local Frame2 = "rbxassetid://8769168840"
local Frame3 = "rbxassetid://8769168631"

local Image = script.Parent

while true do
	Image.Image = Frame1
	wait()
	Image.Image = Frame2
	wait()
	Image.Image = Frame3
	wait()
end
1 Like

Maybe it’s getting confused because the property and the image label have the same name

Image = Image

1 Like

Alright I’ll switch the name and test it

2 Likes

If that does not work, maybe change the variable called Image to something else like ImageLabel because the variable has the same name as the property

1 Like

I tried both and it still doesn’t work so that’s not the problem.

1 Like

Those are the catalog IDs, you need the asset IDs instead.

Here they are:
8769169441
8769168788
8769168604

2 Likes

Try pasteing the id you have into the imagelabel. Then copy the id from the image label into the script.

1 Like

Alright I just tested that but the images still don’t load.

Variable names would never cause this issue. Confusion can be caused between child and property names, though you should use FindFirstChild("Name") with children and .Name with properties. However, this is not the case for this particular issue.

The ids are all correct however when testing the images don’t load when the script runs.

Try this code segment:

local Frame1 = "http://www.roblox.com/asset/?id=8769169441"
local Frame2 = "http://www.roblox.com/asset/?id=8769168788"
local Frame3 = "http://www.roblox.com/asset/?id=8769168604"

local Image = script.Parent

while true do
	Image.Image = Frame1
	wait()
	Image.Image = Frame2
	wait()
	Image.Image = Frame3
	wait()
end
1 Like

https://gyazo.com/dc82a5deb895546590e5b1042f22a319

repro.rbxm (3.0 KB)

Same script with the IDs changed.

Alright this fixed the issue thanks.

1 Like

Oh, you didn’t even paste the IDs I provided earlier.

1 Like

I did paste them with quotations and without them but it still didn’t work for me.

1 Like
local Frame1 = "rbxassetid://8769169441"
local Frame2 = "rbxassetid://8769168788"
local Frame3 = "rbxassetid://8769168604"

local Image = script.Parent

while true do
	Image.Image = Frame1
	wait()
	Image.Image = Frame2
	wait()
	Image.Image = Frame3
	wait()
end

You must’ve done it incorrectly since the script you provided works with the IDs swapped.

2 Likes

Oh ok I must’ve done something wrong sorry about that.

1 Like