How to make player fall if there is space below while moving forward by BodyVelocity?

I’m trying to make a skill where the player turns into a wheel and rolls away. If you meet a wall, roll up and if not, roll straight (while rolling straight if there is space below, the player (or the wheel now) will fall down). But now I can only make it roll straight and roll up (like in the video) but can’t make it fall down. If you can solve this problem please help me. Thank you very much!!!

Here’s what I’ve done so far:
https://i.gyazo.com/8992dd232a8ce53a43185cae6a437437.mp4
(The player (wheel) should have fallen at 0:08)
(I’m using BodyVelocity)

If your still using a Humanoid, there is property called FloorMaterial which you can listen for and once the property is equal to Enum.FloorMaterial.Air, you can apply a vector force downwards.

Alternatively if you’re not using a humanoid you can raycast like a stud under your character to check if anything is there.

I tried using Raycast but if I use it, it rolls up and then rolls down again. Btw I’m using BodyVelocity to make it

Nvm guys. I figured out how to fix that!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.