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

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

Asked by 10 years ago
It would really help if you tell me.

4 answers

Log in to vote
0
Answered by 10 years ago

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()
Ad
Log in to vote
0
Answered by 10 years ago

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

Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
10 years ago

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

Log in to vote
-1
Answered by 10 years ago

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

Answer this question