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

Is there an easier way to detect which key the player has pressed on a server script?

Asked by 4 years ago
Edited 4 years ago

I'm trying to detect whenever a player presses a key for this game, but I want it to be on a server script. Is there an easier way to do it rather than getting a whole bunch of remote functions?

1 answer

Log in to vote
0
Answered by
oreoollie 649 Moderation Voter
4 years ago

Other than some special use of a BaseValue, no. It's more efficient to use remotes anyway. There is no way for the server to directly read client input, it just doesn't make sense. What I would do is fire a RemoteEvent everytime the client's keyboard input changes (to avoid getting ratelimited)

1
Okay thanks Longjohnnn 28 — 4y
Ad

Answer this question