Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Play sound when player joins (only too that player)?

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?

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)

2 comments

0

do I put this in a script or local script also where do I put it in workspace?

0

Put it in a local script and you can put it wherever your GUI is.

This discussion is preserved as it was. New answers, comments, and votes are closed.