Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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 comment

1

Okay thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.