Developed a lightweight Lua automation script for OBS Studio to protect competitive integrity during live broadcasts of Rust. The tool dynamically obscures sensitive in-game UI elements (the map) in real-time based on input triggers, preventing "stream sniping" without requiring manual scene switching. Technical Execution & Key Features Event-Driven Input Handling: Engineered a low-latency hotkey listener using the obslua frontend API. This hooks into global input events (specifically G and Shift+G) to trigger overlay visibility instantly upon key press. State Management & Debouncing: Implemented a custom timer callback system to manage the "key release" event. This introduces a 250ms decay buffer, preventing the overlay from flickering during rapid input toggles and ensuring a smooth viewer experience. Resource Optimization: Wrote efficient visibility logic that retrieves source references on-demand and properly releases memory pointers (obs_source_release) to prevent resource leaks during long streaming sessions. Configuration Persistence: Built a serialization layer to save and load user-defined hotkey bindings and settings between sessions, utilizing the OBS data array API (obs_data_set_array, obs_hotkey_save). Error Handling: Integrated robust validation logic to check for source existence at runtime, providing descriptive debug logs to the OBS console for easier troubleshooting. Technologies Used: Lua 5.1, OBS Studio API (obslua), Event-Driven Programming, Automation Scripting.