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: How to make a script trigger a sound?

Previous Thread :: Next Thread 
redbananna1000 is not online. redbananna1000
Joined: 13 Oct 2009
Total Posts: 599
11 Feb 2014 02:50 PM
I know it sounds stupid but like make it so at a certain time a sound is played. How would I do that?
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
11 Feb 2014 02:52 PM
wait(YourCertainTime)
workspace.SoundName:play()
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
11 Feb 2014 02:53 PM
sound = -- wherever your sound is, workspace, playergui etc
sound:Play()
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
11 Feb 2014 02:53 PM
Darn, got ninja'd.
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
11 Feb 2014 02:53 PM
if you wanna loop it

while true do
workspace.SoundName:play()
wait(YourCertainTime)
Report Abuse
YumERAGON is not online. YumERAGON
Joined: 18 Apr 2012
Total Posts: 3893
11 Feb 2014 02:55 PM
add a end to the last one I put and if you want it to activate when you touch a brick

function ontouched()

workspace.SoundName:play()
end

script.Parent.Touched:connect(ontouched)

Add the script into the brick you want touched
Report Abuse
redbananna1000 is not online. redbananna1000
Joined: 13 Oct 2009
Total Posts: 599
11 Feb 2014 02:57 PM
Thanks!
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