Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to change the audio ID in workspace with starter GUI?

Title is always confusing. I've been wondering how I can change audio ID's in workspace while using a GUI ingame. I tried to make one, but I'm confused on how to make it.

Error: Sound is not a valid member of ScreenGui

script.Parent.MouseButton1Click:connect(function()
	local textbuttoninput = script.Parent.Parent.TextBox.Text
	local sound = script.Parent.Parent.Parent.Sound
	sound.SoundId = 'rbxassetid://'..textbuttoninput
	sound:play()
end)

1 answer

✓ Accepted answer

try using using textbox and values like

game.Workspace.Sound.Soundid = directory.Value

This discussion is preserved as it was. New answers, comments, and votes are closed.