• Hey! Register here to create your account, engage with the community, and talk about what is new!

How to make teleport that doesn't go through walls?

onion_hq

New member
Joined
Dec 23, 2023
Messages
14
Reaction score
0
Im trying to make a "Blink" ability that teleports the player a short distance forwards, but I also don't want it to let the player go through walls as that would break the game. I have tried using a raycast to detect that their is a block and to teleport the player next to it instead, but I keep ending up getting stuck inside the block and dying from suffocation. Can anyone help?
 
Top Bottom