I have been spending days making this work, and I noticed a huge issue in an actual server. When in studio it doesnt lag at all, but in game it lags A LOT. I can only assume this is because of it being client-server communication, but is there a way to fix this?
the local script detects the player pressing a key and if they are ready to do whatever that key does, and then it sends a message to a server via remote events that fires a server script which then checks again to make sure and then moves the player accordingly.
In an actual server there is a delay because of latency.