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: ContextActionService KeyCode.W doesn't work?

Previous Thread :: Next Thread 
DeGames is online. DeGames
Joined: 08 Sep 2012
Total Posts: 1028
16 Apr 2017 12:30 PM



function onKeyPress(actionName, userInputState, inputObject)
if userInputState == Enum.UserInputState.Begin then
print("You are moving forward")

end
end

game.ContextActionService:BindAction("keyPress", onKeyPress, false, Enum.KeyCode.W)


Report Abuse
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
16 Apr 2017 12:32 PM
Did you use it in a local script?
Report Abuse
DeGames is online. DeGames
Joined: 08 Sep 2012
Total Posts: 1028
16 Apr 2017 12:39 PM
Yes, it seems that none of the WASD keys can be used. I think because they are already binded to movement, but how would I detect if they were pressed as an alternate?


Report Abuse
DeGames is online. DeGames
Joined: 08 Sep 2012
Total Posts: 1028
16 Apr 2017 12:59 PM
KeyCode.W Definitely exists, but how do I detect it since its already binded by default?


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