I made an intro but I added a sound that plays when you join but it only plays once and I wanted everyone who joins to hear it. How can I fix this?
COMMUNITY QUESTION
Play sound when player joins (only too that player)?
1 answer
This should work.
game.Players.PlayerAdded:Connect(function(player)--You can change this to a function on when the game is done loading
local sound = Instance.new("Sound")
sound.SoundId = 123456--Change the 123456 to the ID
sound.Parent = player
sound:Play()
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
do I put this in a script or local script also where do I put it in workspace?
Put it in a local script and you can put it wherever your GUI is.