Why does this happen?

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.

if number == rickroll then
	Part1.Decal1.Texture = "rbxassetid://5756681409"
	Part2.Decal2.Texture = "rbxassetid://5756681409"
	Part3.Decal3.Texture = "rbxassetid://5756681409"
	Part4.Decal4.Texture = "rbxassetid://5756681409"
	rickrollsound.Looped = true
	rickrollsound:Play()
end

There you have it.

First of all, the texture id should have a base part. “rbxassetid://”
Then, to play sound you have to use the :Play() function.

Thanks… Uuuhhhh… Go here…? :- YouTube except put a capital Q at the end of the URL.

There still is no sound or images…

There still is no sound or images…

What does the output say?

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.