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: A question about scripting.

Previous Thread :: Next Thread 
goix is not online. goix
Joined: 28 Sep 2009
Total Posts: 20
16 Dec 2014 06:01 PM
So i have been around on roblox for a very long time, but i never learned how to script. Now i am currently trying to challenge myself to make a working piano. But the main issue is trying to get a block to make a sound when you either click it, or press a button. If anyone knows how to do this and can help, i would be glad to hear it.

-goix
Report Abuse
025110 is not online. 025110
Joined: 23 Nov 2012
Total Posts: 57661
16 Dec 2014 06:02 PM
It's possible and easy, but I'd start with something else

however if you want, store audio in the part, make it disabled or whatever, and when you click do script.Parent.AUDIONAME:Play()
Report Abuse
MARKEDMASTERSPEED is not online. MARKEDMASTERSPEED
Joined: 31 Dec 2010
Total Posts: 98
16 Dec 2014 06:02 PM
Add a sound into the brick, and a click detector.

local function OnClick()
script.SoundNamehere:Play()
wait()
end
PartNameHere.ClickDetector.MouseClick:connect(OnClick)
Report Abuse
goix is not online. goix
Joined: 28 Sep 2009
Total Posts: 20
16 Dec 2014 06:07 PM
Thank you for those who replied, i will try that <3
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
16 Dec 2014 06:16 PM
a piano? thats a lot of sounds to get and organize
Report Abuse
ThatChristianGuy is not online. ThatChristianGuy
Joined: 14 Jun 2014
Total Posts: 1283
16 Dec 2014 06:18 PM
I think there's a way to just use one sound with the Pitch property.


--ThatChristianGuy
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
16 Dec 2014 06:21 PM
still take forever to tune them properly
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