Okay so the title may be a bit confusing but here's some more context
I want this script to detect if the character is in the air and to do that I tried to have the code look for any velocity value that's not near zero (which is where the value varies when you're on the ground)
I used a number range of -1 to 1 for the y velocity when you're on the ground. I need to have the code detect if the y velocity of the humanoidrootpart leaves this range.
if char.HumanoidRootPart.Velocity.y~=NumberRange.new(-1,1) then
print("you are in the air") --filler code
Apparently this doesn't work and I tried to look in the wiki for any solution

2 comments
Vector3.y is deprecated, use Vector3.Y. In other words, use Velocity.Y and not Velocity.y. There are also events of the Humanoid that might help. http://robloxdev.com/api-reference/class/Humanoid
robloxdev.com/api-reference/event/humanoid/freefalling