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

How to make Music play in one area?

Asked by 10 years ago

when i try to put music in my game and then put other it play at the same time and could hear them all over the place at the same time. So now i am trying to find out how to make the music just play in a certain section and in a other section it play other music beside the area i was just at. Thanks if could help Here is also what i have so far in a block with sound and this script:

local s = Instance.new("Sound")

s.Name = "BGMusic" s.SoundId = "http://www.roblox.com/asset/?id=180804241" s.Volume = 1 s.Looped = true s.archivable = false

s.Parent = game.Workspace

wait(0)

s:play()

all i want is to just have music in certain areas of the game and other music in other parts.

1 answer

Log in to vote
-1
Answered by 10 years ago

Put it in a Part. The volume will also affect its range when placed in a Part.

0
I know I already did that but when I do that and make volume in area there play at once but very quite DisneyDreams123 10 — 10y
Ad

Answer this question