I have an if statement that detects if the humanoid’s moving direction is either -1 or 1 in the x axis but the statement is still ran even if the moving direction is not -1 or 1.
print("Move Direction: " .. humanoid.MoveDirection.X)
if humanoid.MoveDirection.X == -1 or 1 then
print(true)
end
Because the first way you were doing it checks if humanoid.MoveDirection.X == -1 which is good, but then you do or 1 so you’re just checking for 1 which is true because lua only evaluates false and nil as falsy