#Playing a sound when someone joins
15 messages · Page 1 of 1 (latest)
Try to create a serverscript
And do : game.Players.Playeradded:Connect(function()
game.SoundService.Sound:Play()
end
here is not a request forum its already simple to create that
this is not stack overflow amigo, just tell the poor dumbass
Rifutsu gave you a good lead on it
im trying to learn
could you explain this script?
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
what
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