UPDATE V4.1.0
- type fix for intellisense autocomplete
- enhance hitbox initialization by creating settings folders if they are missing
- update hit detection logic to use model pivot instead of primary part
Hitbox:LinkToInstance(instance: Instance) -> void
Links the hitbox’s lifecycle to an instance. When the linked instance is destroyed, the hitbox will automatically clean up and destroy itself. This is useful for tying hitboxes to weapons, projectiles, or other temporary game objects.