Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

SoundId is text help?

Asked by
NotSoNorm 777 Moderation Voter
10 years ago

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)

0
At least at first glance this appears correct. What testing, errors, etc do you have for us? BlueTaslem 18071 — 10y
0
Nothing, I just press it and nothing happens. Let me check the output. NotSoNorm 777 — 10y
0
FMOD 25: Unsupported file or audio format. NotSoNorm 777 — 10y
0
got it working, Found out the audio is broken not the script NotSoNorm 777 — 10y
View all comments (3 more)
0
hi notsonowm CanCollideBrick -6 — 6y
1
oof suspended epiclightining 0 — 6y
0
i don't think you need to add rbxassetid:// i think when you put in the number id, it automatically adds that part 20002000sa 83 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

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)

Ad

Answer this question