Damage Part example
A simple damage part that uses Binder. Touch it and you take damage. It exists mostly as an example of a Packager block that carries a dependency: the package contains the damage module and the Binder module it needs, so unpacking it into an empty place just works.
Install
note
This building block uses Packager for installation.
- Download the
.rbxm. - Insert it into Roblox Studio (Insert from File in the Explorer).
- Open Packager, select the package, and press Unpackage.
Notes
- The module can be placed anywhere, just make sure to require it. Packager puts it where it was packaged from, but you are free to move it.
- Read the module after unpacking: it is a short, complete example of a Binder class with a constructor that receives an instance and a Trove, which is the pattern every Binder-based system in my games follows.