By utilizing Roblox's native Glass material and procedurally angled WedgeParts, this script forces the engine to physically refract and distort the 3D environment behind the screen, recreating the heavy, disjointed look of a shattered camera lens.
Key Features:
Key Features:
- 100% Procedural Generation: Every single glass shard and fracture is generated via Luau vector math. No two shatters are exactly alike.
- Zero External Assets: Does not use a single decal, image file, or external texture.
- True 3D Refraction: Actually bends and distorts the workspace environment behind the glass, unlike flat UI overlays.
- Subtle Damage Vignette: Includes a procedurally generated, razor-thin red UI gradient on the screen edges that smoothly fades out to indicate health loss without blinding the player.
- Optimized Cleanup: Automatically animates in, holds for impact, and cleanly Destroys() all generated geometry and UI instances to keep memory usage perfectly clean.
- Plug & Play: Simply drop the code into a LocalScript inside StarterCharacterScripts and it instantly connects to the Humanoid.HealthChanged event.
