I mean, you've got to be kidding me, this script should be working.
function playerEntered(newPlayer)
script.Parent:Play()
end
game.Players.PlayerAdded:connect(playerEntered)
I mean, you've got to be kidding me, this script should be working.
function playerEntered(newPlayer)
script.Parent:Play()
end
game.Players.PlayerAdded:connect(playerEntered)
Put this in a local script:
sound_id = 0 -- Put your sounds 'SoundId' here
S = Instance.new('Sound', game.Workspace.CurrentCamera)
S.SoundId = sound_id
S:Play()
script:remove()
The sound will only play one time!
I'm gonna edit that so it plays in a loop.... Because this is for a game... And I need it looped, because this game is really advanced. (Not the song part though. x3)
It works! Thanks.
This discussion is preserved as it was. New answers, comments, and votes are closed.
7 comments
Are you testing it in solo mode? It might not work in solo mode.
didn't work.
What is the script.Parent? A join sound?
It's a sound.
And no errors? If there are no errors, I can tell you it is a problem with the function triggering. I don't know if it would do anything, but if you would redo the function like game.Players.PlayerAdded:connect(function(plr) script.Parent:Play() end).
Maybe ID is wrong.
Is the Volume around 1?