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: Sound Script

Previous Thread :: Next Thread 
LonlyWolf1 is not online. LonlyWolf1
Joined: 26 May 2010
Total Posts: 381
07 May 2015 05:08 PM
I nead a sound script for my game.

I would nead one that plays song one after another and that it comes from a certain block and once it comes to the end of the last song it would start ower. Can anyone help me ?
Report Abuse
SummerEquinox is not online. SummerEquinox
Joined: 25 Jun 2013
Total Posts: 2088
07 May 2015 05:11 PM
while true do
--code
end

Report Abuse
LonlyWolf1 is not online. LonlyWolf1
Joined: 26 May 2010
Total Posts: 381
07 May 2015 05:18 PM
That dosnt realy help.
Report Abuse
LonlyWolf1 is not online. LonlyWolf1
Joined: 26 May 2010
Total Posts: 381
07 May 2015 05:50 PM
Can anyone help me please?
Report Abuse
JDLENL is not online. JDLENL
Joined: 23 Dec 2009
Total Posts: 1109
07 May 2015 05:51 PM
I nead a sound script for my game.

I would nead one that plays song one after another and that it comes from a certain block and once it comes to the end of the last song it would start ower. Can anyone help me ?

___________________________________

First, insert the sounds into the block and set their pitch/volume/ID. Now, look at their duration. Make note of that number.

--script

sound = 1
while true do
if sound == 1 then
workspace["Sound Block Name Here"]["Name Of First Sound"]:Play()
wait(Duration of First Sound)
sound = 2
elseif sound == 2 then
workspace["Sound Block Name Here"]["Name Of Second Sound"]:Play()
wait(Duration of Second Sound)
sound = 3
elseif sound == 3 then
workspace["Sound Block Name Here"]["Name Of Third Sound"]:Play()
wait(Duration of Third Sound)
sound = 1
end

--end script

Ought to do it.
Report Abuse
LonlyWolf1 is not online. LonlyWolf1
Joined: 26 May 2010
Total Posts: 381
07 May 2015 05:51 PM
I nead it for the game im working on (It is playabe alredy).
I have a bar in there, and i have speakers, and i want to play some music in there, thats why i nead it.
Report Abuse
LonlyWolf1 is not online. LonlyWolf1
Joined: 26 May 2010
Total Posts: 381
07 May 2015 06:04 PM
So i did what you sad but there is no sound at all

sound = 1
while true do
if sound == 1 then
workspace["Speaker1"]["Sound1"]:Play()
wait(113.92)
sound = 2
elseif sound == 2 then
workspace["Speaker1"]["Sound2"]:Play()
wait(106.37)
sound = 3
elseif sound == 3 then
workspace["Speaker1"]["Sound3"]:Play()
wait(108.068)
sound = 1
end

Did I do somthing wrong?
Report Abuse
ShadowForged is not online. ShadowForged
Joined: 02 Jul 2012
Total Posts: 6024
07 May 2015 06:08 PM
Is Speaker1 a model, and, Did you label the sounds "Sound1" "Sound2" and "Sound3"?
Report Abuse
LonlyWolf1 is not online. LonlyWolf1
Joined: 26 May 2010
Total Posts: 381
07 May 2015 06:09 PM
Speaker1 is not a model, and yeah i put the sound's inside the brick and named them Sound1,2,3-
Report Abuse
LonlyWolf1 is not online. LonlyWolf1
Joined: 26 May 2010
Total Posts: 381
07 May 2015 06:12 PM
And i tryed the script in the part, and in workspace and none worked.
Report Abuse
LonlyWolf1 is not online. LonlyWolf1
Joined: 26 May 2010
Total Posts: 381
07 May 2015 06:25 PM
Any ideas why its not working?
Report Abuse
LonlyWolf1 is not online. LonlyWolf1
Joined: 26 May 2010
Total Posts: 381
07 May 2015 06:40 PM
Anyone please?
Report Abuse
LordGeneric is not online. LordGeneric
Joined: 18 Jul 2013
Total Posts: 80
07 May 2015 06:59 PM
I mean, want a link to a model for it?
Report Abuse
LonlyWolf1 is not online. LonlyWolf1
Joined: 26 May 2010
Total Posts: 381
07 May 2015 07:02 PM
Model for what?
Report Abuse
LonlyWolf1 is not online. LonlyWolf1
Joined: 26 May 2010
Total Posts: 381
07 May 2015 08:56 PM
?
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