Hello, I am trying to make a working TV. In the frame of the shows there is a image label and there's a script that changes the decal every 5 second. The thing is the images aren't appearing, they are just black. Could anyone help me with this?
Images = {174985193,325254648,325254760,325254800,325254872,325254931,325255000,325255072,325255143,325255200,325255277,325255362,325256834,325256834,325256903,325256834,325257390,325257446,325257511,325257603,325257722,325257802,325257868,325258463,325259491,325259618,325259759,325259820,325259880,325259925,325259981,325260051,325260161,325260188,325260523,325260628,325260883,325260923,325260968,325261107,325261180,325261325,325261485,325262173,325262220,325262263,325262313,325262379,325262478,325262623,325262676,325262716,325262851,325263524,325263569,325263610,325263700,325263784,325263842,325263896,325263938,325264038,325264106,325264144,325264181,325264222,325264290,325264338,325265466} while wait() do for N,F in ipairs(Images) do script.Parent.ImageLabel.Image = "http://www.roblox.com/asset/?id="..F- 1 wait(5) end end
try using rbxassetid://
instead of http://www.roblox.com/asset/?id=
when loading images, and stop removing 1 from the image ID, it will 99.999% of the time change into a different asset, which wouldn't load your image.
line 4 would now look like this:
script.Parent.ImageLabel.Image = "http://www.roblox.com/asset/?id="..F
create.roblox.com/docs/reference/engine/classes/Decal#Texture
Unlike with Sound and Animation objects, the Content ID of a Decal is not the same as the number in the URL. There are two main ways of finding the Content ID of a Decal:
Paste the URL into the Texture property in Roblox Studio. Roblox will automatically update the property to the correct Content ID. Note this only works in Roblox Studio and cannot be done from Scripts or while the game is running.
Insert the Decal into the game, this is generally done through the Toolbox under 'My Decals'. The Content ID can be found in the decal that is inserted. Note, InsertService:LoadAsset() can also be used if developers wish to automate this method.
I'm also not so sure about subtracting one from your content ID