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

How do i make a server sided key detection or a client side one that can send info to the server ?

Hello I am making a game that requires me to press a button in order to close the menu but I want it to make changes in the workspace like turning a light on can someone help?

1 answer

✓ Accepted answer

What you're trying to accomplish can be completed through the use of Remote Events. These events allow the client to communicate to the server and vice versa. From the client you can call :FireServer() and pass in arguments. You can then have a server script listening for when that event is fired through .OnServerEvent <- (player, ...). Within that server script you can make changes to the workspace that will be visible on all clients as they were made through the server. If you look at the resource I linked above you can find out more about Remote Events and how to properly use them.

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