How would I make it so a sound plays when the player joins?

Tryna make sort of a welcoming/intro sound effect. You join the game, the game plays a sound that only YOU can hear. I’m not really asking for an entire script, you can just tell me the stuff I need to learn in order to make the script, but if you do prefer leaving a script, thats fine.

-Thank you!

2 Likes

Just put a sound into the StarterGui and set Playing to true

2 Likes

hmm… didnt work…

or maybe my studios wierd…

you can have a normal script like this:

game.Players.PlayerAdded:Connect(function()

end)

and have the sound anywhere you want, then change the script like this:

local sound = game.SoundService.Added
game.Players.PlayerAdded:Connect(function()
sound:Play()
end)

Use a PlayerAdded event in a local script and play the sound

You can have your sound in workspace or ect.

sorry im new to scripting, where do i put the script?

1 Like

it can be anywhere, but if you need the location, it’d be more preferable to have it in serverscriptservice.

1 Like

also, sorry for asking alot of questions, but, i can put the sound anywhere, right? and what does the game.SoundService.Added thingy do…

1 Like

its just and example location. Change it to the location of the sound you have.

still didnt work, i have my sound in soundservice, and changed the var to sound = game.SoundService.Sound

is the sound’s name “sound” and are there multiple sounds named “sound”?

yes, and no…

are there any errors in the output?

it says: Screenshot_3

then it seems the sound you are trying to use (the id of a sound) is not a song or is taken down.

ohhhh maybe thats it bc i just uploaded the sound and its prbly stuill getting moderated

yeah, you will have to wait a bit for it to get moderated if you have any problems from there, reply.

1 Like