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.
01 | local sound = script.Parent.Parent.Frame.TextLabel.Sound |
02 | local Input = script.Parent.Input |
03 |
04 | script.Parent.Enter.MouseButton 1 Down:connect( |
05 | function () |
06 | sound.Playing = false |
07 | wait(. 1 ) |
08 | sound.SoundId = Input.Text |
09 | wait(. 1 ) |
10 | sound.Playing = true |
11 | end ) |
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
01 | local sound = script.Parent.Parent.Frame.TextLabel.Sound |
02 | local Input = script.Parent.Input |
03 |
04 | script.Parent.Enter.MouseButton 1 Down:connect( |
05 | function () |
06 | sound.Playing = false |
07 | wait(. 1 ) |
08 | sound.SoundId = "rbxassetid://" .. tostring (Input.Text) |
09 | wait(. 1 ) |
10 | sound.Playing = true |
11 | end ) |
I hope this helped!