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 » Scripting Helpers
Home Search
 

Re: Sound help!

Previous Thread :: Next Thread 
friend2010 is not online. friend2010
Joined: 06 Nov 2009
Total Posts: 150
01 Jun 2014 09:45 AM
I am in need of a scripter to help me (I've looked on the wiki before you ask)

I am making a roleplay game and I am trying to add a sound (this one http://www.roblox.com/Homestuck-Homestuck-Vol-5-from-YouTube-convert-item?id=159505928). I'd really appreciate the help and your username will be put in the description for credit.

THANK YOU!
Report Abuse
MasterAzzer is not online. MasterAzzer
Joined: 03 Jan 2010
Total Posts: 38
01 Jun 2014 09:47 AM
Do you want it to be conatantly playing or just when somthing triggers it... Otherwise I cannot do it. If it is triggered tell me how you want it to be triggered.
Report Abuse
friend2010 is not online. friend2010
Joined: 06 Nov 2009
Total Posts: 150
01 Jun 2014 09:48 AM
I'd like it to be constantly looping.
Report Abuse
MasterAzzer is not online. MasterAzzer
Joined: 03 Jan 2010
Total Posts: 38
01 Jun 2014 09:53 AM
Ok then, put the sound in this script and have the loop value checked in the sound. Use this script as the parent of the sound:

function onPlayerEnter()
script.Sound:Play()
end

game.Players.PlayerAdded:connect(onPlayerEnter)
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
01 Jun 2014 09:54 AM
m, b = Instance.new("Sound"), Instance.new("Part", workspace)
m.SoundId = "http://www.roblox.com/asset/?id=159505928"
m.Parent = b
b.Anchored =true


Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
01 Jun 2014 09:55 AM
I posted late, srry

Report Abuse
friend2010 is not online. friend2010
Joined: 06 Nov 2009
Total Posts: 150
01 Jun 2014 09:56 AM
It still isn't working.
Report Abuse
MasterAzzer is not online. MasterAzzer
Joined: 03 Jan 2010
Total Posts: 38
01 Jun 2014 09:57 AM
Don't use the above actually use this:

sound = script.Sound

function onPlayerEnter()
sound.Parent = game.Workspace
game.Workspace.Sound:Play()
script:remove()
end

game.Players.PlayerAdded:connect(onPlayerEnter)
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
01 Jun 2014 09:59 AM
Put ur sound in a script, put this in the script

game.Players.PlayerAdded:connect(function(s)
repeat wait() until script:FindFirstChild("SoundNameHere")

script:FindFirstChild("SoundNameHere"):Play()

script:FindFirstChild("SoundNameHere").Looped = true

end)
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
01 Jun 2014 10:01 AM
Ur mean qq

My script from my last post is better since it will play ur song Looped and makes sure it plays et
Report Abuse
friend2010 is not online. friend2010
Joined: 06 Nov 2009
Total Posts: 150
01 Jun 2014 10:01 AM
Still nothing.
Report Abuse
MasterAzzer is not online. MasterAzzer
Joined: 03 Jan 2010
Total Posts: 38
01 Jun 2014 10:01 AM
This works I've tested it:

sound = script.Sound

function onPlayerEnter()
sound.Parent = game.Workspace
game.Workspace.Sound:Play()
script:remove()
end

game.Players.PlayerAdded:connect(onPlayerEnter)
Report Abuse
friend2010 is not online. friend2010
Joined: 06 Nov 2009
Total Posts: 150
01 Jun 2014 10:03 AM
Yes! It's working! Like I promised your name will be in the credits!
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
01 Jun 2014 10:03 AM
game.Players.PlayerAdded:connect(function(s)
s.CharacterAdded:connect(function(b)
repeat wait() until script:FindFirstChild("SoundNameHere")

script:FindFirstChild("SoundNameHere"):Play()

script:FindFirstChild("SoundNameHere").Looped = true

end)
end)


Here this one plays even when the Player respawns
Report Abuse
cooldude999921 is not online. cooldude999921
Joined: 13 Aug 2011
Total Posts: 3702
01 Jun 2014 10:04 AM
qq

Mastr u meen qq

Cry cry
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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