How to make specific duration hint only on top of a bar and show it separately in parts score

How to make specific duration hint only on top of a bar and show it separately in parts score? Thank you so much!

You can use a system-attached horizontal line for this. See this page in the Operation Manual: