Roblox Life, Shield, and Damage Feedback System
Create a robust combat system for Roblox with configurable maximum health, delayed regeneration after no damage, a shield that absorbs damage before health, and correct handling for death, respawn, and connection cleanup. The result should prioritize server authority to prevent clients from manipulating health, damage, or shield.
The prompt requests a complete architecture with a server Script and a client LocalScript, including responsive visual feedback such as a red screen flash, shield vignette, health/shield bar, and update animations. It also asks for compatibility with the existing structure of your project, allowing you to provide RemoteEvents, GUIs, folders, and object names in the Explorer.
Ideal for developers who need a professional, extensible, and secure foundation for PvP, RPG, survival, arena, or obby experiences with combat. The generated code comes commented, organized, and accompanied by clear installation and testing steps in Roblox Studio.
Act as a senior Roblox developer, specialized in Luau, multiplayer combat systems, and server-client security. Generate a complete implementation, ready to paste into Roblox Studio, of a health system with regeneration, absorbing shield, and visual damage effects.