local uis = game:GetService('UserInputService') local players = game:GetService('Players') local remote = game:GetService('ReplicatedStorage').Applications.Events.rmi local holding = false uis.InputBegan:Connect(function(input, gp) if gp then return end if input.KeyCode == Enum.KeyCode.X then holding = true task.spawn(function() while holding do for _, plr in ipairs(players:GetPlayers()) do local arguments = { [1] = plr, } remote:FireServer(unpack(arguments)) end task.wait(0.1) end end) end end) uis.InputEnded:Connect(function(input, gp) if input.KeyCode == Enum.KeyCode.X then holding = false end end)