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: Checking if the player is holding the space bar?

Previous Thread :: Next Thread 
frriend is not online. frriend
Joined: 07 Feb 2010
Total Posts: 577
03 Oct 2015 12:54 AM
I want to make the player fly if they hold space fpr 1 second.. how would i achieve this?
Report Abuse
CyanRain is not online. CyanRain
Joined: 05 Jun 2014
Total Posts: 82
03 Oct 2015 12:56 AM
very carefully
Report Abuse
frriend is not online. frriend
Joined: 07 Feb 2010
Total Posts: 577
03 Oct 2015 12:57 AM
Not Helping.
Report Abuse
CyanRain is not online. CyanRain
Joined: 05 Jun 2014
Total Posts: 82
03 Oct 2015 12:59 AM
skrub ur funny if you think people will actually help you here
Report Abuse
frriend is not online. frriend
Joined: 07 Feb 2010
Total Posts: 577
03 Oct 2015 01:01 AM
I've been helped before, so i am sure i will be answered eventually.. Hopefully.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Oct 2015 01:05 AM
You can do something like this:
- UIS.InputBegan, if space key pressed check if some variable is false, if so set a variable to true and while the variable is true
- UIS.InputEnded, set variable to false (if space key pressed)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
03 Oct 2015 01:13 AM
wow i worded that horribly

Using UIS.InputBegan to check if they pressed space and if they did: make sure some variable is false, if it is set it to true and in a loop while the variable is true, do what you want.

Using UIS.InputEnded check if they pressed space, if so set the variable to false.
Report Abuse
llogical is not online. llogical
Joined: 10 Sep 2015
Total Posts: 193
03 Oct 2015 01:39 AM
be carefull! it may be difficult!


lololololll, i just want to forum!
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