Safe Melee Combat with Hitbox, Animation, and Cooldown
Generate a professional melee combat implementation for Roblox with target detection through spatial hitbox using GetPartBoundsInBox and OverlapParams. The system correctly separates responsibilities between client and server: the client handles input and responsive animation, while the server validates attacks, range, cooldown, and applies damage to the Humanoid.
Ideal for developers who need a secure, extensible base ready to paste into Roblox Studio. The prompt requests a complete architecture with LocalScript, server Script, and configuration ModuleScript, including installation guidance, RemoteEvent, character filtering, and multiplayer testing instructions.
Act as a senior Roblox developer specialized in Luau, client-server architecture, and exploit-safe combat systems. Generate a complete melee combat system with area-based hitbox using Workspace:GetPartBoundsInBox and OverlapParams, damage on Humanoids, attack animation, and server-validated cooldown.