So I have a GUI in which a player can enter their sound ID for it to change the sound of the horn. However, it isn't working and is only changing the sound ID to the "rbxassetid://" part and doesn't include what the user entered. Here is my script:
repeat wait() until script:FindFirstAncestorOfClass("PlayerGui")
local player = script:FindFirstAncestorOfClass("Player").Name
local userboat = script.Parent.Parent.Parent.Ship.Value
local seat = userboat.VehicleSeat
local musicID = script.Parent.Parent.TextBox.Text
script.Parent.MouseButton1Click:Connect(function()
print("submitted sound")
seat.Horn.SoundId = "rbxassetid://" .. musicID
print("sound submitted")
end)

1 comment
please refrain from using excessive .Parent climbs.