you can use this module to easily add priority based states to your humanoids or other types of instances and have full control over them ...