generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Audio to play when a player joins

Previous Thread :: Next Thread 
tyele is not online. 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
BreachedSecurity is not online. BreachedSecurity
Joined: 18 Feb 2013
Total Posts: 156
23 Dec 2013 11:53 AM
http://www.roblox.com/Forum/ShowForum.aspx?ForumID=20

You're welcome.
Report Abuse
TimeShop is not online. 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 is not online. 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 is not online. tyele
Joined: 03 Nov 2008
Total Posts: 320
23 Dec 2013 11:59 AM
And btw, the script doesn't work :/
Report Abuse
TimeShop is not online. 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 is not online. tyele
Joined: 03 Nov 2008
Total Posts: 320
23 Dec 2013 12:01 PM
I'll check all of that.
Report Abuse
tyele is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image