Collision Setting

I just wanted to ask Something Quick and Its that I want to make it so whenever your character is teleported into a model it wont glitch it out but once you leave it it becomes solid and you cant go into it.
How would I do this?