local input = script.Parent.Parent.Input.Text
script.Parent.MouseButton1Click:connect(function()
local S = Instance.new('Sound',workspace)
S.Name = 'Song'
S.SoundId = 'rbxassetid://'..input
S.Volume = 1
S.Pitch = 1
S:Play()
S:GetPropertyChangedSignal("TimeLength"):Connect(function()
if S.TimeLength == 0 then
S:Destroy()
end
end)
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.Opener.Visible = true
print(S.SoundId)
end)
Im making a cilent sided music player for my game so people hear their own music and like the script works and all but the issue is the input text isnt being put in it prints out nothing when I use the print method??? Error:
14:51:20.645 - Failed to load sound rbxassetid://: Unable to download sound data
It shows a empty message when I use the print method I don't know how I can put the input to be valid for the button https://gyazo.com/36882bfeeb957fdeb361a347e3be43a5
