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: If I wanted a button pressed

Previous Thread :: Next Thread 
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
10 Dec 2013 10:30 PM
if I wanted them to press enter to make the script work would it be

keyDown or keyUp?
Report Abuse
4567777 is not online. 4567777
Joined: 13 Jul 2013
Total Posts: 128
10 Dec 2013 10:36 PM
keydown of course
Report Abuse
Christbru01 is online. Christbru01
Joined: 03 Apr 2010
Total Posts: 649
10 Dec 2013 10:49 PM
keyDown is sketchy as most computers will send multiple keydown signals when the button is held down, thus using keyUp would prevent that as they can hold it down as long as they like, but until it's actually releaced, it will not run, kinda like the difference between mousebutton1down and mousebutton1click, one is once the button goes down, and the other is once it goes down and back up..
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
11 Dec 2013 12:49 AM
Which one should I use?
Report Abuse
xPRESIDENTx is not online. xPRESIDENTx
Joined: 10 Jun 2011
Total Posts: 815
11 Dec 2013 12:58 AM
use keydown or create a function to find the first key down signal.
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
11 Dec 2013 05:54 PM
how would I do that ^
Report Abuse
xSIXx is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
11 Dec 2013 05:55 PM
... so you are asking us which one to use and now you are asking us to make it for you.

clever, but not so clever.
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
12 Dec 2013 12:00 AM
No I am asking how would I do the second part that he said...I know keyUp and keyDown but that guy above my other post said something else -_- im not a noob scripter you know
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
12 Dec 2013 12:14 AM
"create a function to find the first key down signal."

thats what I meant...how do I do this...
Report Abuse
PiggyJingles is not online. PiggyJingles
Joined: 13 Jan 2009
Total Posts: 2472
12 Dec 2013 12:30 AM
Google it. :3
Report Abuse
REM25 is not online. REM25
Joined: 28 Feb 2010
Total Posts: 3154
12 Dec 2013 12:44 AM
...well gee thanks scripting "helpers"
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
12 Dec 2013 01:07 AM
Use a combination of keydown and keyup along with debounce. I like things to register when the key is pressed.
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