I’m trying to get it to where if a player presses “E” for example, it fires to the server onto a remote event and establishes a connection through :Connect(). This remote event then tells the server to perform an action, and after the action is performed, it then :Disconnect()'s the connection. BUT I’m looking to get it to where if I were to press E again, it would then re-connect the connection and perform the action again.
So far though, it just disconnects and does not re-connect nor perform the action again if I press E again. I’ve tried looking into re-connecting connections and so far nothing has helped my case.
Any help would be immensely appreciated. (I am a beginner so apologies if some things I say sound uninformed)