I want to switch between two images infinitely on a brick. When I click 'Play Here' and check the decal ID the images are switching like they're supposed to, but it is not showing up in the game. Any help? Thanks in advance!
local decal = script.Parent local image1 = "http://www.roblox.com/asset/?id=1218322396" local image2 = "http://www.roblox.com/asset/?id=1218323284" local images = {image1, image2} while true do for i,v in pairs(images) do decal.Texture = v wait(3) end end
Local scripts don't work in Workspace ingame. You have to create a local script in StarterPlayer>StarterPlayerScripts. So, your script should look like this:
local decal = game:GetService("Workspace").TV.Screen.Decal local image1 = "http://www.roblox.com/asset/?id=1218322396" local image2 = "http://www.roblox.com/asset/?id=1218323284" local images = {image1, image2} while true do for i,v in pairs(images) do decal.Texture = v wait(3) end end
Above should be your script. Hope this helps! Good luck.