PlayerAdded function doesn't work

  1. What do you want to achieve? I am trying to make that once a player enter, it plays a sound only for him.

  2. What is the issue? The sound doens’t play, no erorrs.

  3. What solutions have you tried so far? I tried to change from GI:Play to GI.Playing = true

Here is my script.

game.Players.PlayerAdded:Connect(function()
		workspace.GI:Play()
end)
1 Like

same error happened to me… someone solve this please

Is the player added script in a local script or a server script? Player added does not work in local scripts.

1 Like

Just make a LocalScript and play the sound immediately. Or better, wait for the character to spawn first:

if not game.Players.LocalPlayer.Character then
   game.Players.LocalPlayer.CharacterAdded:Wait()
end
someSound:Play()
1 Like