Hey so I have been trying to take text from a gui, and play a song.
function music()
script.Parent.Sound.SoundId = script.Parent.Frame.TextBox.Text
if script.Parent.Sound.SoundId == script.Parent.Frame.TextBox.Text then
print("Apple")
end
script.Parent.Sound:Play()
print("Working V2")
if script.Parent.Sound.IsPlaying == true then
print("Working V3")
end
end
script.Parent.Frame.TextButton.MouseButton1Click:Connect(music)
This is my script, everything prints, so I don't see the problem. The only problem I can see is in properties the sound object ID does not match the text I entered.

4 comments
Sorry, It's not working, I was met with this error! 07:24:36.760 - Failed to load sound rbxassetid://: Unable to download sound data
LOL
Works fine for me, did you copy what I sent you? Stupid question, is your volume turned up in Roblox and on your PC? Yeah, don't insert rbxassetid:// into the TextBox. Just into the code, you only need to write the ID in the sound box with nothing else. The code will concatenate the "rbxassetid://" bit to your ID.
Still not working.