Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 4 years ago

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

Log in to vote
0
Answered by 4 years ago

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)
0
do I put this in a script or local script also where do I put it in workspace? DJTwisted_2 0 — 4y
0
Put it in a local script and you can put it wherever your GUI is. co_existance 141 — 4y
Ad

Answer this question