Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why don't some keys work with Mouse.KeyDown? [closed]

Asked by
blocco 185
10 years ago

I don't like the ROBLOX backpack, and I disabled it so that I could make my own. However, I've run into a problem. I can't open my inventory! The i key isn't working! Is there anything I can do to get it to work?

Locked by FearMeIAmLag

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?

4 answers

Log in to vote
6
Answered by
MrNicNac 855 Moderation Voter
10 years ago

Some keys in KeyDown (i, o) are reserved for other things by a binding. Use KeyUp instead, and you should be able to get the input from those reserved keys.

Ad
Log in to vote
1
Answered by
MunimR 125
10 years ago

Keys i,o, and / don't work with KeyDown since they are preset by CoreGuis which use AddSpecialKey, as MrNicNac said just use KeyUp to receive them, but if you really need it then you can set the Camera to Scriptable to get i and o and to get / remove the chat core gui using SetCoreGuiEnabled

Log in to vote
0
Answered by 10 years ago

You could set the Camera to Scriptable to use the > i key. By default, > i and > o are used by the camera.

Log in to vote
-4
Answered by 10 years ago

some of the keys won't work cause of the key:byte() thingy