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: Why wont this line work? (help)

Previous Thread :: Next Thread 
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
24 Dec 2015 04:45 PM
if not gameProcessedEvent and key.KeyCode == Enum.KeyCode.LeftShift or Enum.KeyCode.RightShift and hum and not sprinting and canSprint then



any button i press works instead of just left/right shift
Report Abuse
hkep is not online. hkep
Joined: 19 Jul 2014
Total Posts: 550
24 Dec 2015 05:10 PM
You cant say or this

if Key.KeyCode == leftShift or Key.KeyCode == rightShift
Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
24 Dec 2015 05:19 PM
Oh ok, thanks dude
Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
24 Dec 2015 05:26 PM
UserInputService.InputEnded:connect(function(key, gameProcessedEvent)
if not gameProcessedEvent and key.KeyCode == Enum.KeyCode.LeftShift or key.Keycode == Enum.KeyCode.RightShift and hum then
sprinting = false
end
end)





Output: Keycode is not a valid member of InputObject
Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
24 Dec 2015 07:41 PM
Ou
Report Abuse
UnstableScript0 is not online. UnstableScript0
Joined: 21 Dec 2015
Total Posts: 1189
24 Dec 2015 07:43 PM
'Keycode is not a valid member'

It's KeyCode.

Script0 has become unstable.. Please terminate it.
Report Abuse
SameySam is not online. SameySam
Joined: 22 Mar 2012
Total Posts: 11040
24 Dec 2015 08:08 PM
Oh true thanks
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