Jonathan T. answered 05/29/21
Roblox Lua Tutor
The most reliable way to add sound into your game is to add a Sound Object into game.SoundService.
You can find free audio files in the Toolbox, by using the dropdown menu and setting it to 'Audio' then all you have to do is copy the Sound ID (A.K.A Asset URI) of the Sound and place it in the 'Soundid' property of your sound object.
From there you can check the 'Playing" checkbox to play your sound over the server. However, to play it over the Client (A.K.A Locally), you're going to want to use a LocalScript within the StarterPlayer.StarterPlayerScripts folder, then in your script you're going to write the following:
SoundService = game:GetService("SoundService") -- (this gets the full name of game.SoundService without glitching.)
SoundService:PlayLocalSound(SoundService.Sound) --[[ Using SoundService's "PlayLocalSound()" function will allow you to
play the song/sound for each player individually.
Next, place the full name of the Sound Object you want to play inside of the brackets; in this case its ' SoundService.Sound ' ]]
Whalla! you're now ready for Business!
Happy Developing!
*Feel free to reach out to me if you need a tutor; I'm currently accepting new students.