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 on certain time

Previous Thread :: Next Thread 
Jordie6006 is not online. Jordie6006
Joined: 11 Mar 2011
Total Posts: 841
08 Jan 2013 07:49 PM
I would like to make a sound play at a certain time.. Soo here is my fail script if any1 can help me?

wait(100)
play.Soundid=http://www.roblox.com/asset/?id=4762065

~Slender is coming for you!~
Report Abuse
Jordie6006 is not online. Jordie6006
Joined: 11 Mar 2011
Total Posts: 841
08 Jan 2013 07:56 PM
=BUMP=

~Slender is coming for you!~
Report Abuse
Jordie6006 is not online. Jordie6006
Joined: 11 Mar 2011
Total Posts: 841
08 Jan 2013 07:57 PM
=BUMP=

some1 help?

~Slender is coming for you!~
Report Abuse
crazydude2243 is not online. crazydude2243
Joined: 05 Sep 2010
Total Posts: 245
08 Jan 2013 07:58 PM
there is nothing that can be played
Report Abuse
Jordie6006 is not online. Jordie6006
Joined: 11 Mar 2011
Total Posts: 841
08 Jan 2013 07:59 PM
It is possible to play a Sound after 100 seconds. I know it. Help.

~Slender is coming for you!~
Report Abuse
crazydude2243 is not online. crazydude2243
Joined: 05 Sep 2010
Total Posts: 245
08 Jan 2013 08:01 PM
while true do
sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=4762065"
sound.Parent = script
wait(100)
sound:Play()
wait(10)--the time it takes for sound to end
sound:remove()
end
Report Abuse
crazydude2243 is not online. crazydude2243
Joined: 05 Sep 2010
Total Posts: 245
08 Jan 2013 08:02 PM
Does that work?
Report Abuse
Jordie6006 is not online. Jordie6006
Joined: 11 Mar 2011
Total Posts: 841
08 Jan 2013 08:09 PM
Yes. Thank you very much.

~Slender is coming for you!~
Report Abuse
Jordie6006 is not online. Jordie6006
Joined: 11 Mar 2011
Total Posts: 841
08 Jan 2013 08:10 PM
But is there any way to make it so it will not loop?

~Slender is coming for you!~
Report Abuse
crazydude2243 is not online. crazydude2243
Joined: 05 Sep 2010
Total Posts: 245
08 Jan 2013 08:15 PM
yah
i will post in next comment
Report Abuse
Jordie6006 is not online. Jordie6006
Joined: 11 Mar 2011
Total Posts: 841
08 Jan 2013 08:17 PM
kk

~Slender is coming for you!~
Report Abuse
Jordie6006 is not online. Jordie6006
Joined: 11 Mar 2011
Total Posts: 841
08 Jan 2013 08:20 PM
M2E: How do you make it so any Script does not loop? Do you do:

end()

~Slender is coming for you!~
Report Abuse
Jordie6006 is not online. Jordie6006
Joined: 11 Mar 2011
Total Posts: 841
08 Jan 2013 08:20 PM
M2E= Message to Everyone

~Slender is coming for you!~
Report Abuse
crazydude2243 is not online. crazydude2243
Joined: 05 Sep 2010
Total Posts: 245
08 Jan 2013 08:21 PM
times = 10 -- number of times you want it to loop
for i=1, times do
sound.SoundId = "http://www.roblox.com/asset/?id=4762065"
sound.Parent = script
wait(100) -- time before every play
sound:Play()
wait(10)--the time it takes for sound to end
sound:remove()
end
Report Abuse
crazydude2243 is not online. crazydude2243
Joined: 05 Sep 2010
Total Posts: 245
08 Jan 2013 08:23 PM
-- you simply dont put the loop, the loop is "while true do" and you take out the "end" if you take out the "while true do" example below
sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=4762065"
sound.Parent = script
wait(100)
sound:Play()
wait(10)--the time it takes for sound to end
sound:remove()
Report Abuse
megaguy44 is not online. megaguy44
Joined: 28 Sep 2008
Total Posts: 1066
08 Jan 2013 08:25 PM
-- meh
wait(100)
Sound = Instance.new("Sound", game:GetService("Workspace"))
Sound.SoundId = "http://www.roblox.com/asset/?id=4762065"
Sound:Play()


print('Hello World!')
Report Abuse
crazydude2243 is not online. crazydude2243
Joined: 05 Sep 2010
Total Posts: 245
08 Jan 2013 08:35 PM
[ Content Deleted ]
Report Abuse
crazydude2243 is not online. crazydude2243
Joined: 05 Sep 2010
Total Posts: 245
08 Jan 2013 08:38 PM
Fix
print("Hello Facepalm Guy")
![No, not you again!][1]


  [1]: http://i1.kym-cdn.com/entries/icons/square/000/000/554/facepalm.jpg
Report Abuse
crazydude2243 is not online. crazydude2243
Joined: 05 Sep 2010
Total Posts: 245
08 Jan 2013 08:39 PM
does this work?
![IT WORKS][1]


  [1]: http://t5ak.roblox.com/a907aec9f60b879c5bed307738cbf728
Report Abuse
megaguy44 is not online. megaguy44
Joined: 28 Sep 2008
Total Posts: 1066
09 Jan 2013 04:08 AM
If you had simply read what OP was asking for Crazy, you'd see that the script I posted was what he wanted in the first place.


print('Hello World!')
Report Abuse
crazydude2243 is not online. crazydude2243
Joined: 05 Sep 2010
Total Posts: 245
09 Jan 2013 03:41 PM
Well he got a couple free scripts
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