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
 

Key functions

Previous Thread :: Next Thread 
Exclaimed is not online. 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 is not online. Exclaimed
Joined: 02 Sep 2010
Total Posts: 1477
04 Aug 2011 07:40 PM
Bump
Report Abuse
xvgigakid is not online. 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 is not online. Exclaimed
Joined: 02 Sep 2010
Total Posts: 1477
04 Aug 2011 07:41 PM
Eh... What?
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
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 is not online. 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
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
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 is not online. 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
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
04 Aug 2011 07:52 PM
Okay, I'm there, but you're not repsonding. :P
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