#Playing a sound when someone joins

15 messages · Page 1 of 1 (latest)

terse patio
#

how do i make it so when someone joins the server it plays a sound

lapis quail
#

Try to create a serverscript

#

And do : game.Players.Playeradded:Connect(function()

game.SoundService.Sound:Play()

end

thorny nimbus
tulip jasper
tulip jasper
terse patio
terse patio
thorny nimbus
#

Sorry for being rude i'll explain when an player added to server you can connect to an function or create an local function it also return which player joined in first argument also there is another thing called Players.CharcacterAdded:Connect() it works when player's characted fully loaded so you can do things about player's character without errors but you dont need player in this game because you aregoing to play this sound play to everyone in server when a player joined the server but if you set the first argument and connect Plqy() function for Player you can do it for only who joined the server probably this better for games

terse patio
#

what

lapis quail
#

Nevermind...

#

Let me explain

#

When a player comes into your server you can create a function or a local function and connect it to an event Touched, PlayerAddedetc... So when a player will join there is a specific event for this one, it is PlayerAdded so you could use it like this :

game.Players.PlayerAdded:Connect()

Here in the parenthesis you can put the name of the local function ( without parenthesis) or you could make a function out of this one

terse patio
#

oohhh

#

makes sense