How do i make something get replaced by another prefab when hit by something at a certain velocity in unity c#?

Solution for How do i make something get replaced by another prefab when hit by something at a certain velocity in unity c#?
is Given Below:

I need to know I’m a young developer who doesn’t know a single bit of math and I’ve already tried writing one but it just instantly deletes itself so I am desperate