• Outside of punishment appeals, these forums have been archived.
    We hope to see you on our Discord instead!
    Discord has a minimum age, found here. You may need to wait, or ask a parent to handle tickets for you.
  • 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