Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My Music ID GUI doesn't work for some reason?

Asked by 7 years ago

I think it's because it's far more complex than this... I don't know what to do, I don't know if it's the music ID Part, Id on't know if i have to replace it with another sound, I don't know...

The Loading Error says:

OnContentProviderSoundLoaded Sound failed to load Players.Player1.PlayerGui.Music.Frame.TextLabel.Sound : 232763959

No idea what that means, so explain in simple words please.

Many thanks.

local sound = script.Parent.Parent.Frame.TextLabel.Sound
local Input = script.Parent.Input

script.Parent.Enter.MouseButton1Down:connect(
function()
    sound.Playing = false
    wait(.1)
    sound.SoundId = Input.Text
    wait(.1)
    sound.Playing = true    
end)



1 answer

Log in to vote
0
Answered by 7 years ago

for Roblox Sounds, you must add a URL that leads you to the asset id of the audio

ex rbxassetid://

All you have to do is simply add the url string before the audio id

local sound = script.Parent.Parent.Frame.TextLabel.Sound
local Input = script.Parent.Input

script.Parent.Enter.MouseButton1Down:connect(
function()
    sound.Playing = false
    wait(.1)
    sound.SoundId = "rbxassetid://"..tostring(Input.Text)
    wait(.1)
    sound.Playing = true    
end)

I hope this helped!

0
Thank you so much. DarkAndLight64 0 — 7y
Ad

Answer this question