Hi.
you can use a raycast to select the cube, then use set parent and parent to hand or player
if object has gravity, disable it on pickup and do a set velocity 0,0,0
Then to release the object use set parent and set to empty.
then enable gravity on the object again.