im guessing its something pretty simple that im missing, but basically i have a text button and when you type a soundID in it should play the desired audio, however i get the same error: Failed to load sound 12222030: Unable to download sound data
this is the script so far (im 70% sure im just missing something):
local pGui = game.Players.LocalPlayer.PlayerGui
local MusicUI = pGui:WaitForChild("Music")
local MusicBox = MusicUI.TextBox
local SoundToPlay = Instance.new("Sound")
SoundToPlay.Parent = game:GetService("SoundService")
MusicBox.FocusLost:Connect(function(enterpressed)
if enterpressed then
SoundToPlay.SoundId = MusicBox.Text
SoundToPlay:Play()
task.wait(1)
MusicBox.Text = "TYPE MUSIC ID"
else
MusicBox.Text = "TYPE MUSIC ID"
end
end)