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

SoundId is text help?

Im trying to make it so when you press this button the text id on the textbox plays, Help?

script.Parent.MouseButton1Down:connect(function()
	script.Parent.Parent.Parent.ScrollingFrame.Sound.SoundId = "rbxassetid://"..script.Parent.Parent.TopBox.Text
	script.Parent.Parent.Parent.ScrollingFrame.Sound:Play()
end)

7 comments

0

At least at first glance this appears correct. What testing, errors, etc do you have for us?

0

Nothing, I just press it and nothing happens. Let me check the output.

0

FMOD 25: Unsupported file or audio format.

0

got it working, Found out the audio is broken not the script

0

hi notsonowm

1

oof suspended

0

i don't think you need to add rbxassetid:// i think when you put in the number id, it automatically adds that part

1 answer

Heyo fellow teletubbie, I noticed that where it says "rbxassetid://" you didn't put an ID there. Also, You should provide a better explanation of this.. Everything else is fine!

-Daffy

script.Parent.MouseButton1Down:connect(function()
    script.Parent.Parent.Parent.ScrollingFrame.Sound.SoundId
 "rbxassetid://999999999"..script.Parent.Parent.TopBox.Text  --Replace 999999999 with SoundID!
    script.Parent.Parent.Parent.ScrollingFrame.Sound:Play()
end)

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