How do you add multiple music to your game?

I want to add multiple music to my game, how do I add it?

I can’t find any good tutorials on Youtube.

You will need to make a script but i already made 2 pre-made script models for people who don’t really know how to do things like this:

The advanced pack more for scripters it will be hard:
Advanced pack

The basic just for people who don’t really know mutch about scripting:
Basic pack

also tell me if it doesn’t work cause the code can be outdated and i can update the model if needed.
also read the read me script.

local sound = Instance.new('Sound', workspace)
sound.SoundId = 000000
sound:Play()

-- you can make more of these

Depends. If you want music to play in different parts of the map, then you want Sound Regions. If you want multiple music to play in the game at different times, then you are gonna want a local script

It entirely depends on your choice of preference, there’s a lot of ways to do it

  • If you want a play a random song, you can get the Children of all the Sounds inside a Folder and play a random song that way

  • If you want to play songs in chronological order, you can use ipairs inside a loop

  • You can overlap songs by playing 1 Instance, then playing another

Does it need to be a local script?

local Sound1 = Instance.new("Sound")
local Sound2 = Instance.new("Sound")

-- Play Sound1
Sound1.Parent = workspace
Sound1.SoundId = 0000
Sound1:Play()
-- Play Sound2
Sound2.Parent = workspace
Sound2.SoundId = 0000
Sound2:Play()

No, it can also be done in the server

This will never work if you do this it will play 2 sounds at the same time nobody wants that.

1 Like