How do I find decals in my game?

Sometimes I will add a decal or sound to my game, and later on it gets moderated and removed. Is there a way for me to find it without needing to search up “Decal” or “Sound” in Explorer and going through each decal/sound?

Edit: Also, the decals/sounds aren’t always very visible, which is why I can’t just go to the part/area where it has the sound/decal.

Open the command bar:

Once you click the “Command Bar” icon, a new bar at the bottom of the screen should pop up!

Copy and paste the selected code below into the bar, and press the “Enter” key on your keyboard!

local RemoveID = "rbxassetid://idhere" -- This will work with any id, example: "rbxassetid://0000"

for _,v in pairs(workspace:GetDescendants()) do
	if v:IsA("Decal") then
		if v.Texture == RemoveID then
			v:Destroy()
		end
	elseif v:IsA("Sound") then
		if v.SoundId == RemoveID then
			v:Destroy()
		end
	end
end
2 Likes

And if the rbxassetid is 0, it’ll still work if I put “rbxassetid://0” ?

If it’s not working, try http://www.roblox.com/asset/?id=YOUR-ID-HERE