Teleport without teleporting into an object?

Hello,

I have been working on a teleportation script. The problem is, it teleports into objects. Is there a way to make it choose a space to teleport to, and if there is an object there, choose another area?

Thanks

You could try using Physics.OverlapSphere to check the target position for the existence of colliders.

I think it would be better if you show us what you have already? That way people could help you!