How to make music universal for a single player

I’ve finally decided to pursue a proper menu for a game of mine, and I was curious as to how I could set up some intro menu music? I have zero knowledge of sounds other than just playing them straight out of blocks.

If your trying to make the sound play for a certain player, you could use a local script to do it.

All you have to do is insert a Sound somewhere into the player’s client. The most logical place for menu music would be inside the Gui itself (anywhere will do, probably under the ScreenGui itself). Either that or you can parent the sound to the player’s PlayerGui.

The difference between putting it in the menu gui and the PlayerGui is that if the gui is removed (e.g. going to a different menu screen depending on how you set it up) the music will stop too.

In order to play the music, in a localscript just do sound:Play()

2 Likes

try using a local script in StarterPlayerScripts

idk what am doing but try this

local sound = script:WaitForChild("Sound")
local Players = game.Players

player.PlayerAdded:Connect(function()
    sound:Play()
end

Just Create Localscript And Paste This Code:

local SOUND_ID = 0 -- // Sound ID

game.Players.PlayerAdded:Connect(function()
      SOUND_ID:Play()
end)