So I want my character to run when I click a key on the keyboard. For example when I click shift my speed will increase. I tried to use the KeyDown function but it doesn't really work. Is there another way to do this?
COMMUNITY QUESTION
Clicking a key to do something?
1 answer
The main reason for input scripts not working is that they're local. User input can only be taken from LocalScripts.
However, KeyDown is deprecated. UserInputService is the current way to get user input. http://wiki.roblox.com/?title=API:Class/UserInputService
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Have you tried UserInputService? http://wiki.roblox.com/?title=API:Class/UserInputService
No but I will. Thanks