local LogService = game:GetService("LogService") local Players = game:GetService("Players") LogService.MessageOut:Connect(function(msg, msgType) if msgType == Enum.MessageType.MessageWarning then local username = string.match(msg, 'Player "(.-)" appears to be spamming remote events%.') if username then for _, v in ipairs(Players:GetPlayers()) do if v.Name == username then v:Kick() break end end end end end)