Detect if key 'Z' is pressed

How do I detect if key z is pressed on the server script?

I know we have to use userinputservice on local scripts, but I am using a separate function that can only be run in a server script.

Unfortunately, not how it works. You’ll have to use a RemoteEvent to tell the server when a player presses Z.

nevermind i dont need it. but i would mark you as solution as it should work.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.