Exclaimed
|
  |
| Joined: 02 Sep 2010 |
| Total Posts: 1477 |
|
|
| 04 Aug 2011 07:38 PM |
| How do I put multiple animations in one script that are executed when a key is hit? |
|
|
| Report Abuse |
|
|
Exclaimed
|
  |
| Joined: 02 Sep 2010 |
| Total Posts: 1477 |
|
| |
|
xvgigakid
|
  |
| Joined: 22 Jun 2008 |
| Total Posts: 4407 |
|
|
| 04 Aug 2011 07:40 PM |
function animation1() Animation here end
function animation2() Animation here end
function KeyDown() animation1() animation2() end |
|
|
| Report Abuse |
|
|
Exclaimed
|
  |
| Joined: 02 Sep 2010 |
| Total Posts: 1477 |
|
| |
|
|
| 04 Aug 2011 07:42 PM |
| All of the key functions are only accessable when you selectiong either a tool or a hopperbin, because the mouse is required. Though I'm sure you could find a way to get the mouse by making a tool, returning the mouse, and then deleteing the tool? :P |
|
|
| Report Abuse |
|
|
Exclaimed
|
  |
| Joined: 02 Sep 2010 |
| Total Posts: 1477 |
|
|
| 04 Aug 2011 07:43 PM |
| You will start of with a bin, What I don't get is how I would do this with the key animations. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 07:46 PM |
script.Parent.Selected:connect(function(mouse) mouse.KeyDown:connect(function(key) if key == yourKey then --code end end) end) |
|
|
| Report Abuse |
|
|
Exclaimed
|
  |
| Joined: 02 Sep 2010 |
| Total Posts: 1477 |
|
|
| 04 Aug 2011 07:49 PM |
On code is that the anim?
Oh btw, Go to http://typewith.me/Lua to chat, I have questions. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 07:52 PM |
| Okay, I'm there, but you're not repsonding. :P |
|
|
| Report Abuse |
|
|