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: could someone help me with something?

Previous Thread :: Next Thread 
greykell is not online. greykell
Joined: 08 Feb 2013
Total Posts: 4195
19 Oct 2015 08:20 PM
i need to make a brick, where when it is touched a sound plays. how would i do that?


~Science is okay I guess~
Report Abuse
12904 is not online. 12904
Joined: 29 Oct 2012
Total Posts: 441
19 Oct 2015 08:35 PM
I think all you need to do is add a audio inside of the brick and a click detector take the audio id is the audio and you might need to link the click detector to the audio
Report Abuse
MKofOrbiter is not online. MKofOrbiter
Joined: 28 Aug 2010
Total Posts: 910
19 Oct 2015 08:36 PM
^


Do you even know what you are talking about.
Report Abuse
MKofOrbiter is not online. MKofOrbiter
Joined: 28 Aug 2010
Total Posts: 910
19 Oct 2015 08:37 PM
WTF, would you use a ClickDetector...
Report Abuse
sal212 is not online. sal212
Joined: 11 Apr 2010
Total Posts: 2929
19 Oct 2015 08:43 PM
Put this script in the brick, put a sound in the brick as well.

function Touch()
script.Parent.SOUNDNAME:Play()
end

script.Parent.Touched:connect(Touch)
Report Abuse
MKofOrbiter is not online. MKofOrbiter
Joined: 28 Aug 2010
Total Posts: 910
19 Oct 2015 09:00 PM


local Brick = script.Parent

local Music = Brick:WaitForChild("MusicNameHere")

Brick.Touched:connect(function()

Music:Play()

end)
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