Of course if you:
1 | print (game:GetService( "UserInputService" ):IsKeyDown() --a Random KeyCode Here |
then you'll get that someone pressed a key. But who? How to find out who is pressing the keys? It would be useful, 'cause Getting Keyboard Input works bad, so I wanted to replace it with this.
Thanks,
SwaggyDuckie.
UserInputService should only be used in a localscript anyways.
So you can just index the LocalPlayer
of game.Players
1 | local plr = game.Players.LocalPlayer |