I want to make a system that when a user has a button pressed, a value is raised in the server (e.g. A car that when you are holding down W it speeds up). Can I achieve this without sending hundreds of remote events to the server every second while the user is holding down the button.
I don’t want something like this:
local uis = game:GetService("UserInputService")
while task.wait() do
if uis:IsKeyDown(Enum.KeyCode.R) then
-- Fires remote event 100 times every second
end
end