How can i Bounce Like this

sine and cosine on the object’s z translation then clamp the values below zero?