Is there a way to let the server script know that a button has been pressed from the client script? Is it even possible? If so, what do I need research for this?
no, This is not how the client-server works. I recommend reading this article as it explains it well.
Yes, It’s possible. Just fire a remote event when a button is pressed (although you’ll probably want to add debounce so it can’t be spammed).
Try using remote events for communication between the server and the client. Remote Functions work as well. As @jakebball11 stated, you should read the article he linked.
It is not recommended to use user input detection on server. Process those things on client as much as possible before firing the remotes. Firing the remotes shouldn’t be spammed too many times. If you can’t use remotes for any reason(such as how many times they will fire in a quick succession), use the server as an observer of the updates the client does.
Thanks ya’ll I figured out a solution to my problem