I’m working on my music system and I left it for a few weeks and came back today to find out most of the songs had been copyrighted, so I was wondering, if there was a way to tell if they had been copyrighted while I was gone, and the song just wouldn’t play.
This is a serious problem in the Genre that I work in. I spoke to some other developers of games such as Wings of Fire and it’s pretty evident that there is an issue:
We have absolutely no way of being notified that our audio gets copyrighted. Especially for any kind of gliding or wind noise, copyright is extremely common.
On top of that, Roblox decided to add appalling royalty free music to copyrighted audios without asking permission, which degrades game quality significantly as the problem persists.
Copyrighted audios NEED to simply throw a warning and play silence, at the very least. At the very most, we should be contacted similar to when a DMCA request is made.
What you could do is that you could either check the name of the Audio, I think Roblox renames them to like “removed for copyright” and remove the audio to silence. Or, you could check if the audio exists.
A really easy fix is just to use Non-Copyrighted music.
It was a piece of classical music that I made into midi using Sibelius, then converted to mp3 in Audacity. I don’t really know why it was removed since it wasn’t technically performed by anyone, and since it was written in the 1800s it should be public domain.
I’ve identified a solution through checking the title of the asset to see if it has been removed for copyright, as noted below. Make sure to define the sound variable as your audio. Hope this helps.
local song_id = 123456789
local asset = game:GetService("MarketplaceService"):GetProductInfo(song_id)
local asset_name = asset.Name
print(asset_name)
if asset_name ~= "(Removed for copyright)" then
sound.SoundId = "rbxassetid://"..song_id
wait(1)
sound:Play()
wait(sound.TimeLength)
end