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!
01 | local decal = script.Parent |
02 |
03 | local image 1 = "http://www.roblox.com/asset/?id=1218322396" |
04 | local image 2 = "http://www.roblox.com/asset/?id=1218323284" |
05 | local images = { image 1 , image 2 } |
06 | while true do |
07 | for i,v in pairs (images) do |
08 | decal.Texture = v |
09 | wait( 3 ) |
10 | end |
11 | 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:
01 | local decal = game:GetService( "Workspace" ).TV.Screen.Decal |
02 | local image 1 = "http://www.roblox.com/asset/?id=1218322396" |
03 | local image 2 = "http://www.roblox.com/asset/?id=1218323284" |
04 | local images = { image 1 , image 2 } |
05 | while true do |
06 | for i,v in pairs (images) do |
07 | decal.Texture = v |
08 | wait( 3 ) |
09 | end |
10 | end |
Above should be your script. Hope this helps! Good luck.