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?
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?
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!
Thank you! :)
Accept my answer if it helped =D
Depends whether or not you only want the person who is having the dialog to hear it.
I do, I want everyone to hear the sound.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
shouldn't matter unless you want the sound client sided, in that case i think a LocalScript is for you