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

how would I make a sound play for everyone if a certain dialog choice was picked?

How would I make a sound play for everyone if a certain dialog choice was picked?

-would it be a local script or a normal script?

1 comment

0

shouldn't matter unless you want the sound client sided, in that case i think a LocalScript is for you

2 answers

✓ Accepted answer

Helo, Innovation_dev!

you should call this function when the player clicks on the dialog:

-- Normal Server Script(not local script)
local song

function PlaySound(songid)
	song = Instance.new("Sound")
	song.SoundId = "rbxassetid://" .. songid
	song.MaxDistance = 10000000
	song:Play()
	wait(song.TimeLength)
	song:Destroy()
end

Don't forget to call the function and place the sound id on the brackets!

Good Luck with your games!

2 comments

0

Thank you! :)

0

Accept my answer if it helped =D

Depends whether or not you only want the person who is having the dialog to hear it.

1 comment

0

I do, I want everyone to hear the sound.

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