So I want a sound to play for a player, everytime they join the game. However, with the way I did it, the sound plays for everyone, not the player who just joined the game. This is the code I used to play the sound file, and it is a localscript
Game.Workspace.Sound:Play()
Place the sound inside of the PlayerGui and play it from there.
You could also change the source of the LocalScript to the following: local base=game:service'Lighting'.Join_Sound:clone();--Place the sound in Lighting and rename it to Join_Sound base=base:clone(); base.Parent=game:service'Workspace'.currentCamera; base:play();
game.Players.PlayerAdded:connect( function(plr) newsound = game.Workspace.Sound:clone() newsound.Parent = plr.PlayerGui newsound:play() end)
I think that's it... basically this does
When new player joins: Copy the sound into a new sound Put the new sound into the player's playergui Play the new sound.
Might be some problems with it, but try it :P
playergui is located under the Players > YOURNAME > PlayerGui