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: Piano script =)

Previous Thread :: Next Thread 
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
12 Dec 2011 08:05 PM
Just randomly wanted a piano script since i love music so much. Here goes:

if ????.????.????.???.keyboardkey.z == pressed then

function KeyPressed(hit)
game.workspace.part.SoundCNote = play

Repeat with other notes... So i kinda made this up as i went, not sure of any specifics yet.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
12 Dec 2011 08:08 PM
It's hard to make the sound of the piano..Unless it's a roblox sound.
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
12 Dec 2011 08:09 PM
Yeah, i know, but i'll cross that bridge when i get to it.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
12 Dec 2011 08:24 PM
Dude, that's the hard part...I wouldn't even do this until you get a couple tips about making sounds without roblox sounds.
Report Abuse
Pyzothon is not online. Pyzothon
Joined: 26 Oct 2011
Total Posts: 822
12 Dec 2011 08:28 PM
Agreed with miz656. You need to know how to work with sounds in ROBLOX, plus it needs to be approved.

And your code isn't close to a working script (in the slightest).

Pyzothon, novice scripter/programmer.
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
12 Dec 2011 08:29 PM
Well i heard of one but i wasnt really sure what it was. I searched "Moves like Jagger" on free models and i found a little radio. It played basic sounds, no lyrics, and no drums, it sounded kinda like a nylon guitar. Anyway, i looked at its script, there wasnt a sound in sight. But i found this:

sound = {3, -1.5, 7}, {6, -7, -3.25}... And it went on and on until the script went off the screen. So, obviously, that has something to do with it.
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
12 Dec 2011 08:32 PM
Oh come now, all i was missing is the part i dont understand, the "end", the Event listener, and i had a few errors.... Yeah, thats a lot, but ill fix the script once i get some sounds.
Report Abuse
nate890 is not online. nate890
Joined: 22 Nov 2008
Total Posts: 21686
12 Dec 2011 08:34 PM
you dont need to make own sounds, change pitch and volume on roblox's sounds

­<'+1 Post. Ujelly?'>
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
12 Dec 2011 08:38 PM
=D Thats what the {3, 4, 5} thing was right?
Report Abuse
ChaosStar95 is not online. ChaosStar95
Joined: 19 Feb 2009
Total Posts: 5943
12 Dec 2011 08:53 PM
1. You can't create your own sounds. You have to manipulate the tone/pitch of Roblox's sounds.

"Oh come now, all i was missing is the part i dont understand, the "end", the Event listener, and i had a few errors.... Yeah, thats a lot, but ill fix the script once i get some sounds."
2. That's four lines. Usual scripts for things like this are very complex and take weeks or months. You are absolutely nowhere near done, my friend.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
12 Dec 2011 09:04 PM
@Chaos

http://www.roblox.com/Music-Showcase-place?id=42607420

He did!
Report Abuse
micol2242 is not online. micol2242
Joined: 13 Nov 2010
Total Posts: 4732
12 Dec 2011 09:07 PM
He changed the pitch of sounds alot. idiot.

--what is this i dont even--
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
12 Dec 2011 09:11 PM
That "nylon guitar" was the banjo gear sounds.
Report Abuse
ChaosStar95 is not online. ChaosStar95
Joined: 19 Feb 2009
Total Posts: 5943
12 Dec 2011 09:12 PM
No he didn't...
He manipulated the pitch and tone of Roblox sounds and strung them together to simulate a musical tune using a script, just like I said.
Several people do this, for example blobbyblob and brandonhare.
Report Abuse
drexel2000 is not online. drexel2000
Joined: 03 Sep 2011
Total Posts: 297
12 Dec 2011 09:13 PM
i want to know HOW to script
Report Abuse
ChaosStar95 is not online. ChaosStar95
Joined: 19 Feb 2009
Total Posts: 5943
12 Dec 2011 09:16 PM
@drexel:
wiki.roblox.com
On the right side, under Building and Scripting, click Tutorials.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
12 Dec 2011 09:19 PM
There's a model I have that makes sounds...Swmaniac told me about it...And that's WHAT I THINK the creator of this thread wants.
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
12 Dec 2011 10:22 PM
I know it's only four lines, but did you notice the part where I said that I was going to repeat it for all notes?I just wanted to make sure my script was on track. I wanted to know how to make sounds, and how to make an event listener for a keyboard button.
Report Abuse
ChaosStar95 is not online. ChaosStar95
Joined: 19 Feb 2009
Total Posts: 5943
13 Dec 2011 02:37 PM
@miz: Yes, it's called the MIDI player. That's what blobbyblob (one of the people I mentioned) invented using manipulation of Roblox sounds.

#wow75: Oh! So you just want buttons that make specific sounds for each one? Like an ordinary playable piano? I thought you meant something that plays a song entirely on it's own! In that case this is much simpler to do.
But still, you can't create sounds. You alter the properties of Roblox's sounds to create "different" sounds, meaning they're all variations of the same sound just with different tone and pitch. Then you just use those, a different tone/pitch of the sound for each key.
Report Abuse
wow75 is not online. wow75
Joined: 16 Jan 2009
Total Posts: 951
13 Dec 2011 05:11 PM
Simple enough, off to the drawing board!
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