So here is my script:
game.StarterGui.RequestGUI.RequestBox.Play.MouseButton1Click:Connect(function()
local Text = game.StarterGui.RequestGUI.RequestBox.Text
game.Workspace.Sound.SoundId = "rbxassetid://"..Text
game.Workspace.Sound.Playing = true
end)
Basically, I'm trying to get it to change the SoundId of a sound in Workspace as well as make it start playing by using the ID the player puts in a textbox.
However, nothing happens when I put in the ID and hit the play button. There are 0 errors in Output and this is in a regular server script.

5 comments
Line 4 should say: workspace.Sound:Play()
I did this and still nothing happens.
This is using StarterGui - you need to use the GUI running in the player's PlayerGui. Sorry I have to go rn so I can't answer fully
It's good if you'll use '.Changed:connect()' for TextBox. and yes, use Sound:Play()
Remember that connect is deprecated, use Connect now. (Example: Object.Changed:Connect() )