|
| 27 Jun 2014 01:40 AM |
| Everytime a person joins the game, it plays a sound. Whenever other people are online and a person joins the game, they hear the sound again! How do I make the sound play individually? |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 01:43 AM |
Put the sound in StarterGui or StarterPack.
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function() for i, v in ipairs(game.Players.GetChildren()) do v.PlayerGui.Sound:Play() wait(3) v.PlayerGui.Sound:Stop() end end) end)
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 01:44 AM |
| Do I put this in a local script or regular? |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 01:45 AM |
Screw that.. that would play a sound every time someone spawned, haha. Do this instead.
game.Players.PlayerAdded:connect(function() for i, v in ipairs(game.Players:GetChildren()) do v.PlayerGui.Sound:Play() end end)
I am not entirely sure if it will play and need to be stopped after it's played? If it doesn't work, then there's a simple fix.
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 01:46 AM |
Put that in a regular script in the Workspace.
-The [Guy] |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Jun 2014 01:49 AM |
Make sure your sound is named "Sound"?
-The [Guy] |
|
|
| Report Abuse |
|
|
| |
|
|
| 27 Jun 2014 01:50 AM |
And make sure it's in the PlayerGui, that's where I have the script point to.
-The [Guy] |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 01:51 AM |
| Once I put the sound in StarterGui, when I run it, it goes into PlayerGui. So that's good also. |
|
|
| Report Abuse |
|
|
|
| 27 Jun 2014 01:58 AM |
| Any other suggestions please? |
|
|
| Report Abuse |
|
|
| |
|
| |
|