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