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

[SOLVED]Numbers don't work on keyboard input script when toolbar/backpack loads? [closed]

Asked by
HlCOM 0
10 years ago

Hi.

So I am trying to get it to display numbers pressed as well, but when my backpack loads, the numbers aren't registering. It works if I press numbers before the backpack is loaded. There is also nothing in my backpack & starterpack. Here is the script, it is a localscript inside of StarterGui.

keyboard = game.Players.LocalPlayer:GetMouse()

keyboard.keyDown:connect(function(key)
    print(key)
end)

Thanks, changing it to keyUp worked

1
Try using KeyUp to get some of the locked keys to print. SquirreIOnToast 309 — 10y
0
It works, thanks! HlCOM 0 — 10y

Locked by MrFlimsy and BlueTaslem

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

Why was this question closed?