my air dash system is supposed to make the character start flying(shown in first attempt) . it works by using humanoid.floormaterial to check if the player is in the air while dashing. however, if i dash when to close to the ground, it reads that im on the ground and doesn’t begin flying. why?
1 Like
Well, your script would help us understand how you are doing this.
Print the FloorMaterial so you can see what the output is.
How long is your raycasting pointing down? Did you try shortening the ray slightly?
He’s not raycasting it’s a property of the humanoid. It’s probably the humanoid’s hip height that’s affecting things
Perhaps its checking too early? You might want to wait a teeny bit to let the character actually get off the ground before you check the floormaterial
that would cause input delay with dashes
then perhaps use raycast to check if you would be touching the ground after you jump