How to change main character model via script?

Hello!
I’m looking for some advice how I can change the main character (3d model) in game if for example I buy new model new in in game shop? Can you recomend some tutorials maybe?

There’s multiple ways. But…
What i suggest you do is, instead of just placing the GameObject in the scene window,
drag it into your Assets folder, to make it a prefab, and delete it from the scene.
Then, make a script with a static variable that instantiates it when the Start function is called.
And in the menu where you buy new characters, you can just set the static variable to the prefab of that shop item.

I’m not going into details right now as i don’t even know what language you’re writing in, but, if you have any questions about how to do this, feel free to ask in a comment.