Salut salut! :)) voici ta réponse!
The difference of it and that is the follow, you can use it only for an object or something which is not human or animal ex: “What is it”? “It’s a toy!”
That is used for animal or human purposes for example “what was that?” “A T-Rex!”