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
 

key down

Previous Thread :: Next Thread 
drefus is not online. drefus
Joined: 06 Feb 2011
Total Posts: 307
30 Apr 2017 04:03 AM
function onKeyPress(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.R then
print("R")
end

repeat
print("...")
until onKeyPress(inputObject, gameProcessedEvent)

game:GetService("UserInputService").InputBegan:connect(onKeyPress)

would i call that for a repeat loop?

Report Abuse
Diligent_Coder is not online. Diligent_Coder
Joined: 20 Jul 2011
Total Posts: 1314
30 Apr 2017 08:16 AM
paste bin



/TtJc1xsr


Join my group: https://www.roblox.com/My/Groups.aspx?gid=3217670
Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
30 Apr 2017 08:22 AM
local uis=game:GetService("UserInputService")

repeat wait() print("..") until ((uis:IsKeyDown(Enum.KeyCode.R)))
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