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 sound come out of a brick

Previous Thread :: Next Thread 
tidas4 is not online. tidas4
Joined: 27 Feb 2010
Total Posts: 14487
18 Oct 2013 08:37 PM
When you touch it, I have the sound, and I have a script that makes GUI's pop up when you touch it, but im not sure how to edit it to make sound come out
Report Abuse
qrrrq is not online. qrrrq
Joined: 27 Jan 2013
Total Posts: 1252
18 Oct 2013 08:44 PM
Put a sound and a script inside of the brick if you haven't already done so and put this:

script.Parent.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") then
SOUNDYOUWANT:Play()
end
end)
Report Abuse
tidas4 is not online. tidas4
Joined: 27 Feb 2010
Total Posts: 14487
18 Oct 2013 09:28 PM
Would i just put the soundid there?
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
18 Oct 2013 09:37 PM
No, more likely "script.Parent.SOUNDYOUWANT:Play()" or am I just thinking of changing the IsPlaying Value thing?

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
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