-- Function to handle bhop local function autoBhop(dt) if bhopEnabled then -- Check if the character is moving backwards if humanoid then local velocity = humanoid.RootPart.Velocity local characterForwardDirection = (humanoid.RootPart.CFrame * Vector3.new(0, 0, -1)).unit local velocityDirection = velocity.unit local dotProduct = velocityDirection:Dot(characterForwardDirection)