Yeah so I am making a game where you have a slight chance of being rickrolled because I can and I went to test it… Here is my script:
local Part1 = game.Workspace.Part1
local Part2 = game.Workspace.Part2
local Part3 = game.Workspace.Part3
local Part4 = game.Workspace.Part4
local number = math.random(1,1)
local rickroll = 1
local rickrollsound = game.SoundService.Rickroll
if number == rickroll then
Part1.Decal1.Texture = 5756681409
Part2.Decal2.Texture = 5756681409
Part3.Decal3.Texture = 5756681409
Part4.Decal4.Texture = 5756681409
rickrollsound.Looped = true
rickrollsound.Playing = true
end
When I went to test (by the way the math.random(1,1) is set to that because i was testing the rickroll part and would normally be at 1,1000) it, All the decals are gone and the sound doesn’t play.
You might wanna use the “5756681387” id instead of “5756681409” for the images. Decals texture should be of an Image type, not a Decal type. Whereas the sound, you might wanna put it in the workspace.