Roblox Sound not loading in,Any way to fix this?

So I’m working on a music command for my admin system and The sound doesn’t want to load in,Is their any way to fix this problem?I did try it both on studio and a roblox server but it still fails.

Here is the code:

elseif args[1] == "music" then
		if player and Workspace then
			for _,v in pairs(Workspace:GetChildren())do
				if v.Name == "TEVISAdminSound" then
					v:Remove()
				end
			end
			
			local Sound = Instance.new("Sound")
			Sound.Parent = Workspace
			Sound.Name = "TEVISAdminSound"
			Sound.SoundId = "rbxassetid://"..args[2]
			Sound:Play()
			wait(Sound.TimeLength)
			Sound:Remove()
		else
			commandFailed(player)
		end

Do you have permission to use the sounds you are trying to load and play? That could be why.

1 Like

Missing some relevant information: The table of interests containing the IDs. Unless the only source of audio is in this script. If the sound doesn’t play check if the asset is moderated.

2 Likes