How can i make a remote event detect when input end?

is there a way to a script for a remote event detect when the input ended?

Like, i want a function to repeat inside this remote event and just stops when the input that started this event ends.

What form of input? Do you mean using UserInputService to stop a script when an input was released?

2 Likes

like, when the player press E, a remote event with a loop start, when the input end the loop stops