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

How do you add music to the certain area your in?

It would really help if you tell me.

4 answers

✓ Accepted answer

We could use variables for your character and create it in your torso, thus creating a sound that all people around you/their cameras are near you, should be able to hear.

plr = game.Players.NameHere.Character.Torso

s = Instance.new("Sound", plr)
s.Volume = 1
s.Name = "A_Sound"
s.Pitch = 1
s:Play()

Use the distance formula to modify the volume depending on how close they are to it.

Sounds inside parts have variable volume based on the camera's distance from the part. Sounds not in parts play without any volume distortion.

Use a distance formula on the volume or use the boombox in the stamper.

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