tyele
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 320 |
|
|
| 23 Dec 2013 11:52 AM |
So I wanted to make a game with a little intro, so I made a script that plays a sound when someone joins. I wanted the sound to be heard from players individually. Heres the script, why wont it work?:
plr = game.Players.LocalPlayer
plr.CharacterAdded:connect(function(character) game.Workspace.Soundtrack:Play() end)
Thanks for any answers. |
|
|
| Report Abuse |
|
|
|
| 23 Dec 2013 11:53 AM |
http://www.roblox.com/Forum/ShowForum.aspx?ForumID=20
You're welcome. |
|
|
| Report Abuse |
|
|
TimeShop
|
  |
| Joined: 24 Nov 2010 |
| Total Posts: 1274 |
|
|
| 23 Dec 2013 11:54 AM |
You missed scripting helpers by a longshot.
However, only because I *hope* you learn your lesson, I'll help.
game.Players.PlayerAdded:connect(function(NewPlayer) script.Soundtrack:Play() end)
Make that a script in workspace, and put the 'Soundtrack' inside the script. |
|
|
| Report Abuse |
|
|
tyele
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 320 |
|
|
| 23 Dec 2013 11:55 AM |
| Thanks. Right when I posted that I realized it was on the wrong forum. |
|
|
| Report Abuse |
|
|
tyele
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 320 |
|
|
| 23 Dec 2013 11:59 AM |
| And btw, the script doesn't work :/ |
|
|
| Report Abuse |
|
|
TimeShop
|
  |
| Joined: 24 Nov 2010 |
| Total Posts: 1274 |
|
|
| 23 Dec 2013 12:00 PM |
Has your sound been approved? Is the script in workspace? Is the sound INSIDE the script? Is the sound's name "Soundtrack"? Is the volume of the sound set to 1?
I need more information. |
|
|
| Report Abuse |
|
|
tyele
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 320 |
|
| |
|
tyele
|
  |
| Joined: 03 Nov 2008 |
| Total Posts: 320 |
|
|
| 23 Dec 2013 12:02 PM |
| I had to put the audio to 1. Thanks |
|
|
| Report Abuse |
|
|